diff --git a/src/dirmanager.py b/src/dirmanager.py index 20c13fc..57491c3 100644 --- a/src/dirmanager.py +++ b/src/dirmanager.py @@ -16,8 +16,10 @@ class DirManager: ... """ - def __init__(self, tests_dir: Path, session_id: str): + def __init__(self, tests_dir: Path | str, session_id: str): # root test dir + if isinstance(tests_dir, str): + tests_dir = Path(tests_dir) self._tests_dir = tests_dir.resolve() self.session_id = session_id