Tests for merge_dicts
Test specification for merge_dicts
- merge_dicts_test.sphinx_needs_test_spec = ''
This is a test specification for the module merge_dicts (M_MERGE_DICTS).
Test execution
Run tests in test class with pytest. Command: pytest -q merge_dicts_test.py
Test steps
- class merge_dicts_test.Test_Merge_Dicts[source]
-
- test_merge_dictionaries_different_content()[source]
2. If we have the same key in two dictinaries but different content, the merge_conflict bit shall be set.
- test_merge_dictionaries_double_defined_content()[source]
3. If we have the same key in two dictinaries and the same content, the merge_conflict bit shall not be set.
- test_merge_dictionaries_latest_defined_value_in()[source]
7. If we have the same key in two dictinaries but different content, the first value shall be in the final dict.
- test_merge_dictionaries_no_dict_exception()[source]
4. If we put in something else than a list of dictionaries, we shall get an “AttributeError” exception.
Test results for merge_dicts
Test log for merge_dicts
The logs can be found in different formats:
Human readable logs as html side: log.html
Machine readable logs as json file:
merge_dicts_test_log.json