From fe3602ad3c0db946d1051bdf115b278b9652c743 Mon Sep 17 00:00:00 2001 From: Daniel Ortega Date: Sun, 12 Apr 2020 22:53:31 +0200 Subject: [PATCH] #177 Fixing unit tests when using Python <= 3.6 --- tests/test_app_configuration.py | 2 +- tests/test_json_fields.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_app_configuration.py b/tests/test_app_configuration.py index 85f9f38..65de2db 100644 --- a/tests/test_app_configuration.py +++ b/tests/test_app_configuration.py @@ -6,7 +6,7 @@ class TestServer(unittest.TestCase): - TEST_CONFIG_FILES_PATH = 'tests/data/' + TEST_CONFIG_FILES_PATH = './tests/data/' DEFAULT_CONFIG_RELATIVE_PATH = './prom2teams/config.ini' def test_get_config_with_invalid_path(self): diff --git a/tests/test_json_fields.py b/tests/test_json_fields.py index c05e37e..1f008d6 100644 --- a/tests/test_json_fields.py +++ b/tests/test_json_fields.py @@ -9,7 +9,7 @@ from deepdiff import DeepDiff class TestJSONFields(unittest.TestCase): - TEST_CONFIG_FILES_PATH = 'tests/data/json_files/' + TEST_CONFIG_FILES_PATH = './tests/data/json_files/' def test_json_with_all_fields(self): with open(os.path.join(self.TEST_CONFIG_FILES_PATH, 'all_ok.json')) as json_data: