From 60c33a3ebaf77e0c83737bfea06ac3e9b115e19c Mon Sep 17 00:00:00 2001 From: "christopher.tubbs" Date: Wed, 4 Sep 2024 12:16:53 -0500 Subject: [PATCH] Updated pytest.ini to ignore the evaluation service and the gui to avoid issues due to django service requirements and fixed a possible issue in the django test script. --- pytest.ini | 2 +- scripts/test_django.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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