Skip to content

Commit 6672799

Browse files
committed
increase coverage
1 parent 017631c commit 6672799

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/hdx/test_configuration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_hdx_configuration_yaml(self, hdx_key_file, project_config_yaml):
139139
assert actual_configuration == expected_configuration
140140

141141
def test_project_configuration_dict(self, hdx_key_file):
142-
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_dict={'abc': '123'})
142+
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file)
143143
expected_configuration = {
144144
'api_key': '12345',
145145
'hdx_prod_site': {
@@ -162,7 +162,6 @@ def test_project_configuration_dict(self, hdx_key_file):
162162
'username': 'ZGF0YXByb2plY3Q=',
163163
'password': 'aHVtZGF0YQ=='
164164
},
165-
'abc': '123',
166165
'dataset': {'required_fields': [
167166
'name',
168167
'private',
@@ -190,6 +189,9 @@ def test_project_configuration_dict(self, hdx_key_file):
190189
], 'ignore_dataset_id_on_update': True},
191190
}
192191
assert actual_configuration == expected_configuration
192+
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_dict={'abc': '123'})
193+
expected_configuration['abc'] = '123'
194+
assert actual_configuration == expected_configuration
193195

194196
def test_project_configuration_json(self, hdx_key_file, project_config_json):
195197
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_json=project_config_json)

0 commit comments

Comments
 (0)