tentative to add ci pipeline
This commit is contained in:
parent
48825e9b56
commit
600e67ff76
@ -23,6 +23,7 @@ test:
|
|||||||
script:
|
script:
|
||||||
- source $VIRTUAL_ENV/bin/activate
|
- source $VIRTUAL_ENV/bin/activate
|
||||||
- pip install -r requirements.txt
|
- 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
|
- pytest --cov=app --cov-report=xml # Run tests and generate coverage report
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# tests/test_auth.py
|
# tests/test_auth.py
|
||||||
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
from main import app
|
from ..main import app
|
||||||
|
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user