Move tests to their own folder

This commit is contained in:
2026-03-15 15:02:13 +01:00
parent 230d031e67
commit 592d0ccbfb
3 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@ jobs:
- name: Run tests with coverage
run: |
pytest --cov=./ --cov-report=term --cov-report=xml --cov-report=html --junitxml=report.xml app
pytest --cov=./ --cov-report=term --cov-report=xml --cov-report=html --junitxml=report.xml tests
- name: Upload coverage artifacts
uses: actions/upload-artifact@v3

2
tests/pytest.ini Normal file
View File

@ -0,0 +1,2 @@
[pytest]
pythonpath = ../app

View File

@ -9,7 +9,7 @@ from operator import itemgetter
from faker import Faker
from fastapi.testclient import TestClient
from .main import app
from main import app
# Set up logging
logging.basicConfig(level=logging.INFO)