configglue team mailing list archive
-
configglue team
-
Mailing list archive
-
Message #00176
Re: lp:~ricardokirkner/configglue/django-configglue-inspired-fixes into lp:configglue
The attempt to merge lp:~ricardokirkner/configglue/django-configglue-inspired-fixes into lp:configglue failed. Below is the output from the failed tests.
configglue.app.tests.test_base
AppTestCase
test_config ... [OK]
test_custom_name ... [OK]
test_custom_plugin_manager ... [OK]
test_default_name ... [OK]
test_default_plugin_manager ... [OK]
ConfigTestCase
test_constructor ... [OK]
test_get_config_files ... [OK]
test_get_config_files_full_hierarchy ... [FAIL]
test_get_config_files_with_plugins_full_hierarchy ... [FAIL]
test_glue_invalid_config ... [OK]
test_glue_valid_config ... [OK]
configglue.app.tests.test_plugin
PluginManagerTestCase
test_constructor ... [OK]
test_disable ... [OK]
test_enable ... [OK]
test_enabled ... [OK]
test_load ... [OK]
test_register ... [OK]
test_schemas ... [OK]
PluginTestCase
test_defaults ... [OK]
configglue.tests.inischema.test_attributed
TestAttributed
test_config_after_parsing_is_attributed ... [OK]
test_config_after_parsing_still_knows_about_empty_values ... [OK]
test_config_before_parsing_is_plain ... [OK]
configglue.tests.inischema.test_glue
TestCrazyGlue
test_args_win ... [OK]
test_help_is_displayed ... [OK]
test_ini_file_wins_when_no_args ... [OK]
TestGlue
test_args_win ... [OK]
test_help_is_displayed ... [OK]
test_ini_file_wins_when_no_args ... [OK]
TestGlue2
test_main ... [OK]
TestGlue3
test_accepts_args_and_filenames ... [OK]
test_empty ... [OK]
TestGlueBool
test_store_false ... [OK]
test_store_true ... [OK]
TestGlueLines
test_append ... [OK]
test_append_on_empty ... [OK]
test_no_append ... [OK]
test_nothing ... [OK]
TestNoValue
test_args_win ... [OK]
test_help_is_displayed ... [OK]
test_ini_file_wins_when_no_args ... [OK]
configglue.tests.inischema.test_glue2glue
TestGlueConvertor
test_empty ... [OK]
test_main ... [OK]
test_parser_bool ... [OK]
test_parser_int ... [OK]
test_parser_none ... [OK]
test_parser_unicode ... [OK]
test_simple ... [OK]
configglue.tests.inischema.test_parsers
TestParsers
test_bool ... [OK]
test_bool_is_None ... [OK]
test_bool_not_string ... [OK]
test_lines ... [OK]
test_lines_not_string ... [OK]
configglue.tests.inischema.test_typed
TestBackwardsCompat
test_config_before_parse_is_plain ... [OK]
TestParserd
test_add_multiple_parsers ... [OK]
test_add_multiple_with_repeat_with_clobber ... [OK]
test_add_mutliple_with_repeat_without_clobber ... [OK]
test_add_second_custom_parser_fails ... [OK]
test_custom_parser ... [OK]
test_parse_all_parses_all ... [OK]
test_parse_default_parser ... [OK]
test_some_builtin_parser ... [OK]
test_value_is_default_if_empty ... [OK]
configglue.tests.pyschema.test_parser
TestIncludes
test_basic_include ... [OK]
test_local_override ... [OK]
test_locate ... [OK]
test_read_ioerror ... [OK]
test_relative_include ... [OK]
TestInterpolation
test_basic_interpolate ... [OK]
test_get_interpolation_keys_bool ... [OK]
test_get_interpolation_keys_dict ... [OK]
test_get_interpolation_keys_int ... [OK]
test_get_interpolation_keys_lines ... [OK]
test_get_interpolation_keys_string ... [OK]
test_get_interpolation_keys_tuple ... [OK]
test_get_interpolation_keys_tuple_lines ... [OK]
test_get_with_environment_var ... [OK]
test_get_with_raw_value ... [OK]
test_get_without_environment_var ... [OK]
test_interpolate_across_sections ... [OK]
test_interpolate_environment_basic_syntax ... [OK]
test_interpolate_environment_extended_syntax ... [OK]
test_interpolate_environment_in_config ... [OK]
test_interpolate_environment_without_keys ... [OK]
test_interpolate_incomplete_format ... [OK]
test_interpolate_invalid_key ... [OK]
test_interpolate_missing_option ... [OK]
test_interpolate_parse_dict ... [OK]
test_interpolate_too_deep ... [OK]
test_interpolate_value_duplicate_key ... [OK]
test_interpolate_value_invalid_key ... [OK]
test_interpolate_value_no_keys ... [OK]
TestParserIsValid
test_basic_is_not_valid ... [OK]
test_basic_is_not_valid_with_report ... [OK]
test_basic_is_valid ... [OK]
test_basic_is_valid_with_report ... [OK]
test_different_sections ... [OK]
test_extra_sections ... [OK]
test_extra_sections_when_dict_with_nested_dicts ... [OK]
test_extra_sections_when_dict_with_nested_lines_dicts ... [OK]
test_extra_sections_when_lines_dict_with_nested_dicts ... [OK]
test_extra_sections_when_lines_dict_with_nested_lines_dicts ... [OK]
test_extra_sections_with_nested_dicts_strict ... [OK]
test_is_not_valid_parser_error ... [OK]
test_missing_fatal_options ... [OK]
test_missing_nonfatal_options ... [OK]
test_multiple_extra_sections ... [OK]
test_noschema_section ... [OK]
test_parse_invalid_section ... [OK]
test_parse_invalid_section_with_report ... [OK]
TestSchemaConfigParser
test_default_values ... [OK]
test_extra_sections ... [OK]
test_fatal_options ... [OK]
test_get_default ... [OK]
test_get_default_from_section ... [OK]
test_get_default_no_option ... [OK]
test_get_default_no_section ... [OK]
test_get_default_noschema ... [OK]
test_init_invalid_schema ... [OK]
test_init_no_args ... [OK]
test_init_valid_schema ... [OK]
test_items ... [OK]
test_items_interpolate ... [OK]
test_items_interpolate_error ... [OK]
test_items_no_section ... [OK]
test_items_raw ... [OK]
test_items_vars ... [OK]
test_multi_file_dict_config ... [OK]
test_multi_file_dict_list_config ... [OK]
test_multiple_extra_sections ... [OK]
test_parse_invalid_section ... [OK]
test_parse_option ... [OK]
test_read_multiple_files ... [OK]
test_read_utf8_encoded_file ... [OK]
test_readfp_with_utf8_encoded_text ... [OK]
test_save_config ... [OK]
test_save_config_non_ascii ... [OK]
test_save_config_same_files ... [OK]
test_set ... [OK]
test_set_invalid_type ... [OK]
test_set_non_string ... [OK]
test_values_empty_parser ... [OK]
test_values_full_parser ... [OK]
test_values_many_sections_different_options ... [OK]
test_values_many_sections_same_option ... [OK]
test_write ... [OK]
configglue.tests.pyschema.test_schema
MultiSchemaTestCase
test_merge_schemas_conflicts ... [OK]
test_merge_schemas_duplicate ... [OK]
test_merge_schemas_no_conflicts ... [OK]
test_merge_schemas_same_section ... [OK]
TestBoolConfigOption
test_default ... [OK]
test_parse_bool ... [OK]
test_validate_bool ... [OK]
test_validate_nonbool ... [OK]
TestBoolOption
test_default ... [OK]
test_parse_bool ... [OK]
test_validate_bool ... [OK]
test_validate_nonbool ... [OK]
TestConfigOption
test_equal ... [OK]
test_equal_when_error ... [OK]
test_equal_when_in_section ... [OK]
test_validate ... [OK]
TestConfigSection
test_custom_name ... [OK]
test_default_name ... [OK]
test_equality ... [OK]
test_has_option ... [OK]
test_option ... [OK]
test_options ... [OK]
test_repr ... [OK]
TestDictConfigOption
test_default ... [OK]
test_get_extra_sections ... [OK]
test_init ... [OK]
test_parse_dict ... [OK]
test_parse_invalid_key_in_parsed ... [OK]
test_parse_invalid_key_in_spec ... [OK]
test_parse_no_strict_extra_args ... [OK]
test_parse_no_strict_missing_args ... [OK]
test_parse_no_strict_with_item ... [OK]
test_parse_raw ... [OK]
test_parse_strict ... [OK]
test_parse_strict_extra_vars ... [OK]
test_parse_strict_missing_vars ... [OK]
test_validate_dict ... [OK]
test_validate_nondict ... [OK]
TestDictOption
test_default ... [OK]
test_get_extra_sections ... [OK]
test_init ... [OK]
test_parse_dict ... [OK]
test_parse_invalid_key_in_parsed ... [OK]
test_parse_invalid_key_in_spec ... [OK]
test_parse_no_strict_extra_args ... [OK]
test_parse_no_strict_missing_args ... [OK]
test_parse_no_strict_with_item ... [OK]
test_parse_raw ... [OK]
test_parse_strict ... [OK]
test_parse_strict_extra_vars ... [OK]
test_parse_strict_missing_vars ... [OK]
test_validate_dict ... [OK]
test_validate_nondict ... [OK]
TestDictWithDicts
test_parse_dict_with_dicts ... [OK]
TestIntConfigOption
test_default ... [OK]
test_parse_int ... [OK]
test_validate_int ... [OK]
test_validate_nonint ... [OK]
TestIntOption
test_default ... [OK]
test_parse_int ... [OK]
test_validate_int ... [OK]
test_validate_nonint ... [OK]
TestLinesConfigOption
test_default ... [OK]
test_parse_bool_empty_lines ... [OK]
test_parse_bool_invalid_lines ... [OK]
test_parse_bool_lines ... [OK]
test_parse_int_lines ... [OK]
test_remove_dict_duplicates ... [OK]
test_remove_duplicates ... [OK]
test_validate_list ... [OK]
test_validate_nonlist ... [OK]
TestListOfDictOption
test_parse_lines_of_dict ... [OK]
TestListOfTuples
test_parse_empty_tuple ... [OK]
test_parse_list_of_tuples ... [OK]
test_parse_wrong_tuple_size ... [OK]
TestListOption
test_default ... [OK]
test_parse_bool_empty_lines ... [OK]
test_parse_bool_invalid_lines ... [OK]
test_parse_bool_lines ... [OK]
test_parse_int_lines ... [OK]
test_remove_dict_duplicates ... [OK]
test_remove_duplicates ... [OK]
test_validate_list ... [OK]
test_validate_nonlist ... [OK]
TestOption
test_equal ... [OK]
test_equal_when_error ... [OK]
test_equal_when_in_section ... [OK]
test_validate ... [OK]
TestSchema
test_equal ... [OK]
test_include ... [OK]
test_names ... [OK]
test_options ... [OK]
test_schema_validation ... [OK]
test_sections ... [OK]
TestSchemaHelpers
test_get_config_objects ... [OK]
TestSchemaInheritance
test_basic_inheritance ... [OK]
test_inherited_options ... [OK]
test_inherited_sections ... [OK]
test_merge_inherited ... [OK]
test_mutable_inherited ... [OK]
TestSection
test_custom_name ... [OK]
test_default_name ... [OK]
test_equality ... [OK]
test_has_option ... [OK]
test_option ... [OK]
test_options ... [OK]
test_repr ... [OK]
TestStringConfigOption
test_None_string ... [OK]
test_default ... [OK]
test_default_null ... [OK]
test_init_no_args ... [OK]
test_init_null ... [OK]
test_parse_ascii_string ... [OK]
test_parse_bool ... [OK]
test_parse_empty_string ... [OK]
test_parse_int ... [OK]
test_parse_nonascii_string ... [OK]
test_parse_null_string ... [OK]
test_to_string_for_non_null_string ... [OK]
test_to_string_for_null_string ... [OK]
test_validate_nonstring ... [OK]
test_validate_null_string ... [OK]
test_validate_string ... [OK]
TestStringOption
test_None_string ... [OK]
test_default ... [OK]
test_default_null ... [OK]
test_init_no_args ... [OK]
test_init_null ... [OK]
test_parse_ascii_string ... [OK]
test_parse_bool ... [OK]
test_parse_empty_string ... [OK]
test_parse_int ... [OK]
test_parse_nonascii_string ... [OK]
test_parse_null_string ... [OK]
test_to_string_for_non_null_string ... [OK]
test_to_string_for_null_string ... [OK]
test_validate_nonstring ... [OK]
test_validate_null_string ... [OK]
test_validate_string ... [OK]
TestTupleOption
test_default ... [OK]
test_init ... [OK]
test_init_no_length ... [OK]
test_parse_no_length ... [OK]
test_parse_tuple ... [OK]
test_validate_nontuple ... [OK]
test_validate_tuple ... [OK]
configglue.tests.pyschema.test_schemaconfig
ConfigglueTestCase
test_configglue_no_errors ... [OK]
test_configglue_with_errors ... [OK]
test_configglue_with_usage ... [OK]
TestConfigOption
test_equal ... [OK]
test_parse ... [OK]
test_repr_extra ... [OK]
test_repr_name ... [OK]
TestConfigSection
test_equal ... [OK]
test_has_option ... /var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: MySection is deprecated; use ConfigSection instead.
[OK]
test_repr_name ... [OK]
TestOption
test_equal ... [OK]
test_parse ... [OK]
test_repr_extra ... [OK]
test_repr_name ... [OK]
TestSchemaConfigGlue
test_ambiguous_option ... [OK]
test_glue_environ ... [OK]
test_glue_environ_bad_name ... [OK]
test_glue_environ_precedence ... [OK]
test_glue_no_argv ... [OK]
test_glue_no_op ... [OK]
test_glue_section_option ... [OK]
test_help ... [OK]
test_help_with_fatal ... [OK]
test_parser_set_with_encoding ... /var/cache/tarmac/configglue/trunk/configglue/pyschema/parser.py:342: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
[OK]
TestSection
test_equal ... [OK]
test_has_option ... [OK]
test_repr_name ... [OK]
===============================================================================
[FAIL]: configglue.app.tests.test_base.ConfigTestCase.test_get_config_files_full_hierarchy
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/pymodules/python2.6/mock.py", line 196, in patched
return func(*args, **keywargs)
File "/var/cache/tarmac/configglue/trunk/configglue/app/tests/test_base.py", line 85, in test_get_config_files_full_hierarchy
self.assertEqual(config.get_config_files(app=app), config_files)
exceptions.AssertionError: ['/etc/xdg/myapp/myapp.cfg', '/home/otto/.config/myapp/myapp.cfg', './local.cfg'] != ['/etc/xdg/myapp/myapp.cfg', '/etc/xdg/xdg-gnome/myapp/myapp.cfg', '/home/otto/.config/myapp/myapp.cfg', './local.cfg']
===============================================================================
[FAIL]: configglue.app.tests.test_base.ConfigTestCase.test_get_config_files_with_plugins_full_hierarchy
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/pymodules/python2.6/mock.py", line 196, in patched
return func(*args, **keywargs)
File "/var/cache/tarmac/configglue/trunk/configglue/app/tests/test_base.py", line 107, in test_get_config_files_with_plugins_full_hierarchy
self.assertEqual(config.get_config_files(app=app), config_files)
exceptions.AssertionError: ['/etc/xdg/myapp/myapp.cfg', '/etc/xdg/myapp/foo.cfg', '/home/otto/.config/myapp/myapp.cfg', '/home/otto/.config/myapp/foo.cfg', './local.cfg'] != ['/etc/xdg/myapp/myapp.cfg', '/etc/xdg/myapp/foo.cfg', '/etc/xdg/xdg-gnome/myapp/myapp.cfg', '/etc/xdg/xdg-gnome/myapp/foo.cfg', '/home/otto/.config/myapp/myapp.cfg', '/home/otto/.config/myapp/foo.cfg', './local.cfg']
-------------------------------------------------------------------------------
Ran 318 tests in 0.375s
FAILED (failures=2, successes=316)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: StringConfigOption is deprecated; use StringOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: IntConfigOption is deprecated; use IntOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: BoolConfigOption is deprecated; use BoolOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: DictConfigOption is deprecated; use DictOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: LinesConfigOption is deprecated; use ListOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: TupleConfigOption is deprecated; use TupleOption instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: ConfigOption is deprecated; use Option instead.
name, bases[0].__name__), DeprecationWarning)
/var/cache/tarmac/configglue/trunk/configglue/pyschema/schema.py:660: DeprecationWarning: ConfigSection is deprecated; use Section instead.
name, bases[0].__name__), DeprecationWarning)
Usage: trial [options]
trial: error: Sections in schema are missing from configuration: __main__
Configuration missing required options for section '__main__': foo
No option 'foo' in section: '__main__'
--
https://code.launchpad.net/~ricardokirkner/configglue/django-configglue-inspired-fixes/+merge/65594
Your team Configglue developers is subscribed to branch lp:configglue.
References