Initial
This commit is contained in:
0
app/tests/__init__.py
Normal file
0
app/tests/__init__.py
Normal file
15
app/tests/conftest.py
Normal file
15
app/tests/conftest.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import pytest
|
||||
|
||||
from app.app import create_app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
app = create_app('testing')
|
||||
app.config.update({"TESTING": True})
|
||||
yield app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client(app):
|
||||
return app.test_client()
|
||||
Reference in New Issue
Block a user