From a1de78e8b19a7aae9cb8d9f81256f4f81aeba523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefanie=20D=C3=BCssler?= Date: Wed, 20 Sep 2023 12:45:49 +0200 Subject: [PATCH] fix [unittest] earlier definition of file directory for tear down function --- tests/coupled/dynamic/test_dynamic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/coupled/dynamic/test_dynamic.py b/tests/coupled/dynamic/test_dynamic.py index 1ca8de52e..aa67f3642 100644 --- a/tests/coupled/dynamic/test_dynamic.py +++ b/tests/coupled/dynamic/test_dynamic.py @@ -10,6 +10,8 @@ class TestCoupledDynamic(unittest.TestCase): - Gust response of the hale aircraft """ + route_file_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) + def test_hale_dynamic(self): """ Case and results from: @@ -24,7 +26,6 @@ def test_hale_dynamic(self): import tests.coupled.dynamic.hale.generate_hale case_name = 'hale' - self.route_file_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) cases_folder = os.path.join(self.route_file_dir, case_name) output_folder = cases_folder + '/output/'