|
31 | 31 | test_library_path = os.path.join(
|
32 | 32 | os.path.dirname(__file__), "resources", "library_apiComplianceSuite.json"
|
33 | 33 | )
|
| 34 | +blank_library_path = os.path.join(os.path.dirname(__file__), "resources", "library_empty.json") |
34 | 35 | test_libray = {}
|
35 | 36 |
|
36 | 37 | with open(test_library_path, "r", encoding="utf-8") as file:
|
|
90 | 91 | }
|
91 | 92 | },
|
92 | 93 | "Test_initialize": {
|
93 |
| - "shared": { |
| 94 | + "test_when_settings_have_all_keys_then_all_settings_updated": { |
| 95 | + "some_settings_with_all_keys": { |
| 96 | + "library_path": blank_library_path, |
| 97 | + "simulated_query_latency_ms": 0, |
| 98 | + "entity_reference_url_scheme": "thingy", |
| 99 | + } |
| 100 | + }, |
| 101 | + "test_when_settings_have_invalid_keys_then_all_settings_unchanged": { |
| 102 | + "some_settings_with_new_values_and_invalid_keys": {"library_path": "", "cat": True} |
| 103 | + }, |
| 104 | + "test_when_settings_have_invalid_keys_then_raises_KeyError": { |
94 | 105 | "some_settings_with_new_values_and_invalid_keys": {"library_path": "", "cat": True}
|
95 | 106 | },
|
96 |
| - "test_when_settings_expanded_then_manager_settings_updated": { |
97 |
| - "some_settings_with_all_keys": {"library_path": ""} |
| 107 | + "test_when_settings_have_subset_of_keys_then_other_settings_unchanged": { |
| 108 | + "some_settings_with_a_subset_of_keys": {"simulated_query_latency_ms": 2} |
98 | 109 | },
|
99 | 110 | "test_when_subset_of_settings_modified_then_other_settings_unchanged": {
|
100 |
| - "some_settings_with_a_subset_of_keys": {} |
| 111 | + "some_settings_with_a_subset_of_keys": {"simulated_query_latency_ms": 2} |
101 | 112 | },
|
102 | 113 | },
|
103 | 114 | "Test_entityExists": {
|
|
138 | 149 | "a_reference": RELATEABLE_REF,
|
139 | 150 | "a_relationship_trait_set": known_relationship_traitset,
|
140 | 151 | },
|
| 152 | + "test_when_batched_then_same_number_of_returned_relationships": { |
| 153 | + "a_reference": RELATEABLE_REF, |
| 154 | + "a_relationship_trait_set": known_relationship_traitset, |
| 155 | + }, |
141 | 156 | "test_when_relationship_trait_set_known_then_all_with_trait_set_returned": {
|
142 | 157 | "a_reference": RELATEABLE_REF,
|
143 | 158 | "a_relationship_trait_set": known_relationship_traitset,
|
|
0 commit comments