use absolute path for test settings file

This commit is contained in:
aceisace 2023-01-11 22:35:05 +01:00
parent bdd966ae5d
commit 0729fec933

View File

@ -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')