diff --git a/pytest.ini b/pytest.ini index a5f561268..8ac98aab5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,6 @@ [pytest] -addopts = --import-mode=importlib +addopts = --import-mode=importlib --ignore=python/services/evaluationservice --ignore=python/gui --ignore=scripts/test_django.py consider_namespace_packages = true ; environment variables that will be added before tests are run ; key=value pairs with no spaces diff --git a/scripts/test_django.py b/scripts/test_django.py index c30f6441f..f42f5e9d4 100755 --- a/scripts/test_django.py +++ b/scripts/test_django.py @@ -528,6 +528,9 @@ def find_django_applications(root: Path) -> typing.List[Path]: Returns: A list of all found testable Django applications """ + if isinstance(root, str): + root = Path(root) + application_paths = [] # Indicates if the current root directory might be able to be interpreted