From 8979a1ff74d95649e38bd4ab5f3068902ae9d520 Mon Sep 17 00:00:00 2001 From: davidvlaminck <“david.vlaminck@mow.vlaanderen.be”> Date: Tue, 11 Jun 2024 22:18:35 +0200 Subject: [PATCH] fixed unit test for ModelUpdater, so it can work within UnitTests dir --- UnitTests/ModelUpdater/ModelUpdater_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/ModelUpdater/ModelUpdater_test.py b/UnitTests/ModelUpdater/ModelUpdater_test.py index 871fb5a4e..759eb0f9f 100644 --- a/UnitTests/ModelUpdater/ModelUpdater_test.py +++ b/UnitTests/ModelUpdater/ModelUpdater_test.py @@ -76,7 +76,7 @@ def test_find_changed_enums(): toestand_file_path.write_text(f'{toestand_orig_file_contents}edited this file', encoding='utf-8') new_file_path.write_text('new file', encoding='utf-8') - cmd = 'git add ./../TestModel/OtlmowModel/Datatypes/KlNew.py' + cmd = 'git add ./UnitTests/TestModel/OtlmowModel/Datatypes/KlNew.py' from subprocess import Popen, PIPE Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True).communicate()