fully remove test_dir_name

This commit is contained in:
Daniel 2023-12-05 23:19:44 +01:00
parent 65328d9816
commit e415b8a16a
5 changed files with 4 additions and 6 deletions

View file

@ -19,7 +19,6 @@ class Test:
class Runner:
name: str = ""
test_dir_name: str = ""
setups: list[Test] = []
tests: list[Test] = []
cleanups: list[Test] = []
@ -69,7 +68,10 @@ class Runner:
# condition_met: true / false
identifier_string = self.combine_names(self.name, test.test_file)
full_test_path = self.DIR.RECIPES / self.name / self.test_dir_name / test.test_file
results = list(self.DIR.RECIPES.rglob(test.test_file))
assert len(results) == 1, f"{test.test_file} should exist exactly 1 time, but found {len(results)} times"
full_test_path = results[0]
# check if test aleady passed
if self._is_test_passed(identifier_string, remove_existing=True):