adding tests and fix the pip install

This commit is contained in:
Michael Mäder
2025-03-10 09:15:56 +01:00
parent aeb8ec5096
commit aa6743cfee
5 changed files with 86 additions and 3 deletions

12
src/tests/conftest.py Normal file
View File

@@ -0,0 +1,12 @@
import pytest
from app import app
# see documentation under https://flask.palletsprojects.com/en/2.0.x/testing/
# the client here allow to use the app without running in live server
# see https://flask.palletsprojects.com/en/2.0.x/testing/#sending-requests-with-the-test-client
@pytest.fixture
def client():
app.config['TESTING'] = True
yield app.test_client()