Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Created July 27, 2011 22:03
Show Gist options
  • Save wapcaplet/1110482 to your computer and use it in GitHub Desktop.
Save wapcaplet/1110482 to your computer and use it in GitHub Desktop.
$ nosetests -v
PySciSettings widget can be instantiated. ... ok
clear() empties the buffer. ... ok
modified() retrieves the isModified flag. ... ok
modified(flag) sets the isModified flag. ... ok
Basic configuration settings are applied. ... ok
Color configuration is correctly applied. ... ok
Custom attribute-getters return correct values. ... ok
Enumeration-based configuration is correctly applied. ... ok
Enumeration string-based configuration is correctly applied. ... ok
Font configuration is correctly applied. ... ok
get_config() returns strings for enumerated settings. ... ok
get_config() returns the value set by set_config(). ... ok
Numeric configuration values are correctly applied. ... ok
Tuple-based configuration values are correctly applied. ... ok
Line geometry rectangle is correctly calculated. ... ok
New editors initially have no syntax highlighting defined. ... ok
language() returns the value set by setLanguage(). ... ok
setLanguage() raises an exception on invalid language name. ... ok
setLanguage() sets the correct lexer. ... ok
setLanguage() can be used to disable the lexer. ... ok
Raise exception on bad enumeration name or value. ... ok
Convert enumeration value to string name. ... ok
Convert enumeration name to correct value. ... ok
Language is correctly inferred from filename extension. ... ok
BGR integers are correctly converted to RGB tuples. ... ok
RGB-to-BGR-to-RGB roundtrip conversion works correctly. ... ok
RGB tuples are correctly converted to BGR integers. ... ok
$ py.test -v
tests/test_config.py:9: PySciSettingsTest.test_instantiation PASSED
tests/test_editor.py:68: PySciConfigTest.test_boolean_configuration PASSED
tests/test_editor.py:150: PySciConfigTest.test_color_configuration PASSED
tests/test_editor.py:94: PySciConfigTest.test_custom_getters PASSED
tests/test_editor.py:217: PySciConfigTest.test_enum_configuration PASSED
tests/test_editor.py:237: PySciConfigTest.test_enum_string_configuration PASSED
tests/test_editor.py:137: PySciConfigTest.test_font_configuration PASSED
tests/test_editor.py:49: PySciConfigTest.test_get_enumerated_config PASSED
tests/test_editor.py:40: PySciConfigTest.test_get_set_config PASSED
tests/test_editor.py:112: PySciConfigTest.test_numeric_configuration PASSED
tests/test_editor.py:128: PySciConfigTest.test_tuple_configuration PASSED
tests/test_editor.py:260: PySciGeometryTest.test_line_rect PASSED
tests/test_editor.py:291: PySciBufferTest.test_clear PASSED
tests/test_editor.py:271: PySciBufferTest.test_modified_get PASSED
tests/test_editor.py:281: PySciBufferTest.test_modified_set PASSED
tests/test_editor.py:303: PySciLanguageTest.test_default_language PASSED
tests/test_editor.py:310: PySciLanguageTest.test_get_set_language PASSED
tests/test_editor.py:349: PySciLanguageTest.test_invalid_language PASSED
tests/test_editor.py:321: PySciLanguageTest.test_language_lexer PASSED
tests/test_editor.py:333: PySciLanguageTest.test_no_language_lexer PASSED
tests/test_enums.py:22: EnumTest.test_bad_enum_name PASSED
tests/test_enums.py:14: EnumTest.test_enum_string PASSED
tests/test_enums.py:6: EnumTest.test_enum_value PASSED
tests/test_language.py:5: LanguageTest.test_guess_language PASSED
tests/test_util.py:13: UtilTest.test_bgr_int_to_rgb PASSED
tests/test_util.py:19: UtilTest.test_rgb_bgr_roundtrip PASSED
tests/test_util.py:7: UtilTest.test_rgb_to_bgr_int PASSED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment