adding tests and fix the pip install
This commit is contained in:
12
src/tests/conftest.py
Normal file
12
src/tests/conftest.py
Normal 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()
|
Reference in New Issue
Block a user