From 600e67ff76e5da0529d3ed7126a5c857d54b5d4e Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:05:30 +0100 Subject: [PATCH] tentative to add ci pipeline --- .gitlab-ci.yml | 1 + backend/tests/test_auth.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b2ea9b..ef34089 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,7 @@ test: script: - source $VIRTUAL_ENV/bin/activate - pip install -r requirements.txt + - export PYTHONPATH=$PYTHONPATH:/home/gitlab-runner/builds/t3_38ooWt/0/mx/heidi-v2/backend - pytest --cov=app --cov-report=xml # Run tests and generate coverage report lint: diff --git a/backend/tests/test_auth.py b/backend/tests/test_auth.py index d80db6a..8104057 100644 --- a/backend/tests/test_auth.py +++ b/backend/tests/test_auth.py @@ -1,7 +1,7 @@ # tests/test_auth.py from fastapi.testclient import TestClient -from main import app +from ..main import app client = TestClient(app)