Skip to content

Commit

Permalink
Updated pytest.ini to ignore the evaluation service and the gui to av…
Browse files Browse the repository at this point in the history
…oid issues due to django service requirements and fixed a possible issue in the django test script.
  • Loading branch information
christophertubbs committed Sep 4, 2024
1 parent 79eee88 commit 60c33a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions scripts/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60c33a3

Please sign in to comment.