fix path for _run_main_test

This commit is contained in:
Daniel 2023-11-22 14:45:48 +01:00
parent f93ea27a6f
commit a9850f792a

View file

@ -26,7 +26,8 @@ class Runner:
def _run_main_test(self): def _run_main_test(self):
if isinstance(self.main_test_name, str): if isinstance(self.main_test_name, str):
self._run_pytest(self.main_test_name) full_test_path = self.root_dir / self.test_dir_name / self.main_test_name
self._run_pytest(full_test_path)
def _run_pytest(self, full_test_path: Path): def _run_pytest(self, full_test_path: Path):
"""runs pytest programmatically """runs pytest programmatically