Comments (7)
Oh my. That's quite a regression. What command-line options or config file settings are you using?
from green.
I'm running green tests -vv
. I don't think I have configuration file setup.
from green.
This is fixed in the simplify-subprocesses
branch. It will be released as part of 2.0, hopefully this week. I see you have been busy writing tests! Here is what the tests look like with the current code I'm working on:
test_colour
Test_Colour
. test_3hex_colour
. test_6hex_colour
. test_bad_Tuple_value
. test_bad_hex_chars
. test_bad_hex_string_length
. test_bad_list_legnth
. test_bad_list_value
. test_bad_tuple_legnth
. test_blue
x test_colour_vs_color
. test_default_colour
. test_eq
. test_green
. test_hex
. test_hex_black
. test_list
. test_list_normalized_rgb
. test_list_normalized_rgb_value_too_big
. test_list_normalized_rgb_value_too_small
s test_list_not_normalized -- Not yet defined
. test_normalized_value_one_float
. test_normalized_value_one_int
. test_normalized_value_zero_float
. test_normalized_value_zero_int
. test_not_hex_string
. test_red
. test_repr
. test_rgb
. test_rgb_nomralized_black
. test_rgb_normalized_white
. test_str
. test_tuple
s test_tuple_for_normalized_rgb_too_long -- Not yet defined
s test_tuple_for_normalized_rgb_too_short -- Not yet defined
. test_tuple_normalized_rgb
. test_tuple_normalized_rgb_value_too_big
. test_tuple_normalized_rgb_value_too_small
. test_tuple_not_normalized
Test_Contrast
. test_black_black
. test_from_colour
. test_white_black
. test_white_white
Test_Luminance
. test_as_colour_property
. test_black
. test_colour_provided
. test_white_hex
. test_white_tuple
test_palette
Test_Palette
. test_colour_plus_palette
. test_convert_end_colour
. test_convert_start_colour
. test_from_list_convert_list_colour
. test_from_list_list
. test_from_list_tuple
. test_invalid_end_colour
. test_invalid_start_colour
. test_length
. test_palette_plus_colour
F test_palette_plus_palette
E test_palette_plus_palette_overlapping_colour
. test_repr
. test_str
Test_Palette_with_Images
. test_to_image
s test_to_image_alpha_channel -- not yet defined
s test_to_image_band_width -- not yet defined
s test_to_image_max_width -- not yet defined
test_setup
Test_Setup
. test_version
. test_we_live
Skipped test_colour.Test_Colour.test_list_not_normalized - Not yet defined
Skipped test_colour.Test_Colour.test_tuple_for_normalized_rgb_too_long - Not yet defined
Skipped test_colour.Test_Colour.test_tuple_for_normalized_rgb_too_short - Not yet defined
Skipped test_palette.Test_Palette_with_Images.test_to_image_alpha_channel - not yet defined
Skipped test_palette.Test_Palette_with_Images.test_to_image_band_width - not yet defined
Skipped test_palette.Test_Palette_with_Images.test_to_image_max_width - not yet defined
Failure in test_palette.Test_Palette.test_palette_plus_palette
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/Users/nathan/proj/green/colourettu/test/test_palette.py", line 86, in test_palette_plus_palette
self.assertEqual(len(p3), 4)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 515, in assertEqual
assertion_func(first, second, msg=msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 508, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: 3 != 4
Error in test_palette.Test_Palette.test_palette_plus_palette_overlapping_colour
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/Users/nathan/proj/green/colourettu/test/test_palette.py", line 96, in test_palette_plus_palette_overlapping_colour
self.assertEqual(p3._end, colourettu.colour('#789'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 515, in assertEqual
assertion_func(first, second, msg=msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 505, in _baseAssertEqual
if not first == second:
File "colourettu/_colour.py", line 122, in __eq__
return (self._r is other._r) and (self._g is other._g) and (self._b is other._b)
AttributeError: palette instance has no attribute '_r'
Ran 67 tests in 0.114s
FAILED (errors=1, expected_failures=1, failures=1, passes=58, skips=6)
from green.
2.0.0
is imminent. Tomorrow, I hope. Or Monday.
from green.
👍 Looks great! Thanks for quick fix.
As for those last two failing tests of my own, their a little annoying as they work on Python 3.4, but not 2.7... but I'll figure them out eventually!
from green.
2.0.0
has been released!!!
from green.
Somethings is still broken :( see #74
from green.
Related Issues (20)
- Python 3.9.6 threading compatibility HOT 14
- django.db.utils.ProgrammingError: relation "users_user" does not exist HOT 3
- Combine methode name and doc string in output HOT 2
- Question: What is a "test" in context of --processes HOT 1
- SyntaxError not catched when named explicte but unittest does HOT 4
- Confusing error when I have errors in source code HOT 4
- Problem with -r (coverage) output HOT 1
- Missing git tag for 3.4.2 release HOT 1
- green might hang on async tests HOT 3
- shutil cleanup sometimes fails on python 3.8 HOT 5
- running green -vvv green.test.test_runner on PyPy + macOS errors out HOT 2
- Feature request: option to debug tests
- Python 3.12 support HOT 4
- Join The Project Team HOT 7
- stopTest issue with Python 3.12.1 and skipped tests HOT 15
- Move Release Process to GitHub Actions HOT 7
- Please add me to the project as a maintainer HOT 2
- Fix lack of coverage in CI HOT 3
- Change default branch on coveralls to "main" HOT 2
- Upload wheels to pypi HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from green.