Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Feb 21, 2017
1 parent 017631c commit 6672799
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/hdx/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_hdx_configuration_yaml(self, hdx_key_file, project_config_yaml):
assert actual_configuration == expected_configuration

def test_project_configuration_dict(self, hdx_key_file):
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_dict={'abc': '123'})
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file)
expected_configuration = {
'api_key': '12345',
'hdx_prod_site': {
Expand All @@ -162,7 +162,6 @@ def test_project_configuration_dict(self, hdx_key_file):
'username': 'ZGF0YXByb2plY3Q=',
'password': 'aHVtZGF0YQ=='
},
'abc': '123',
'dataset': {'required_fields': [
'name',
'private',
Expand Down Expand Up @@ -190,6 +189,9 @@ def test_project_configuration_dict(self, hdx_key_file):
], 'ignore_dataset_id_on_update': True},
}
assert actual_configuration == expected_configuration
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_dict={'abc': '123'})
expected_configuration['abc'] = '123'
assert actual_configuration == expected_configuration

def test_project_configuration_json(self, hdx_key_file, project_config_json):
actual_configuration = Configuration.create(hdx_key_file=hdx_key_file, project_config_json=project_config_json)
Expand Down

0 comments on commit 6672799

Please sign in to comment.