batconf.tests package
Submodules
batconf.tests.lib_test module
- class batconf.tests.lib_test.ConfigSingletonTests(methodName='runTest')
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()
Hook method for setting up the test fixture before exercising it.
- test___getattr__()
- Return type:
None
- test___repr__()
__repr__ is provided by the Configuration object
- test___str__()
__str__ provided by the Configuration object
- test__reset()
- Return type:
None
- class batconf.tests.lib_test.InsertSourceTests(methodName='runTest')
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(SourceList)
Hook method for setting up the test fixture before exercising it.
- Parameters:
SourceList (
Mock)
- test_insert_source_default()
- Return type:
None
- test_insert_source_index()
- Return type:
None
- batconf.tests.lib_test.get_config()
get_config always returns a new Configuration instance
batconf.tests.manager_test module
- class batconf.tests.manager_test.ConfigurationTests(methodName='runTest')
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()
Configuration parameters/values are looked up from the Source List
- Return type:
None
- test___getattr__()
- Return type:
None
- test___getitem__()
- Return type:
None
- test___repr__()
- test___str__()
- test__configuration_repr()
- test__configuration_repr_level1()
Adding a level indents the returned strings and adds a pipe char
- test__module()
the _module attribute is the __module__ of the config_class
- test_configuration_priority()
- Return type:
None
- test_from_sources()
- Return type:
None
batconf.tests.namespace_test module
Verify the public batconf root namespace.
- class batconf.tests.namespace_test.BatconfNamespaceTests(methodName='runTest')
Bases:
TestCaseVerify all intended symbols are importable from the root namespace.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_all_is_complete()
Every symbol in __all__ must be importable from batconf.
- test_core()
- test_sources()
batconf.tests.source_test module
- class batconf.tests.source_test.Source(data)
Bases:
SourceInterface- get(key, path=None)
- Parameters:
key (
str)path (
str|None)
- class batconf.tests.source_test.TestSourceInterfaceABC(methodName='runTest')
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_config_source_interface()
- class batconf.tests.source_test.TestSourceList(methodName='runTest')
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()
Hook method for setting up the test fixture before exercising it.
- test___repr__()
- test___str__()
- test_get()
- test_get_priority()
If duplicate keys exist in multiple sources, always return the first found in the list
- test_insert_source_at_index()
- test_insert_source_default_index()
Insert a new source into the SourceList at the given index
- test_none_values_in_args()
Given None values in the initial sources list, they will be ignored, and only valid sources used
batconf.tests.types_test module
Verify the public batconf.types namespace.
- class batconf.tests.types_test.BatconfTypesTests(methodName='runTest')
Bases:
TestCaseVerify all intended symbols are importable from batconf.types.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_all_is_complete()
Every symbol in __all__ must be importable from batconf.types.
- test_deprecated_names()
Old Protocol/Proto-suffixed names emit DeprecationWarning but still resolve.
- test_protocols()
- test_type_aliases()