From 0729fec9330bc7de2e63fedbe9c446b73e7ffa3b Mon Sep 17 00:00:00 2001 From: aceisace Date: Wed, 11 Jan 2023 22:35:05 +0100 Subject: [PATCH] use absolute path for test settings file --- inkycal/tests/main_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inkycal/tests/main_test.py b/inkycal/tests/main_test.py index 450fa3f..1aaee3f 100755 --- a/inkycal/tests/main_test.py +++ b/inkycal/tests/main_test.py @@ -64,7 +64,8 @@ class ModuleTest(unittest.TestCase): with open('settings.json', mode="w", encoding="utf-8") as file: file.write(test_config) print('testing Inkycal in non-render-mode...', end="") - inky = Inkycal('settings.json', render=False) + absolute_path_settings_json = os.path.abspath('settings.json') + inky = Inkycal(settings_path=absolute_path_settings_json, render=False) inky.test() print('OK')