From 667279928a28d99c4a9e3766ff7adf727e1bd4e9 Mon Sep 17 00:00:00 2001 From: Michael Rans Date: Tue, 21 Feb 2017 12:14:15 +0100 Subject: [PATCH] increase coverage --- tests/hdx/test_configuration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/hdx/test_configuration.py b/tests/hdx/test_configuration.py index 5bce1e56..7e6fddcd 100644 --- a/tests/hdx/test_configuration.py +++ b/tests/hdx/test_configuration.py @@ -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': { @@ -162,7 +162,6 @@ def test_project_configuration_dict(self, hdx_key_file): 'username': 'ZGF0YXByb2plY3Q=', 'password': 'aHVtZGF0YQ==' }, - 'abc': '123', 'dataset': {'required_fields': [ 'name', 'private', @@ -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)