diff --git a/requirements.txt b/requirements.txt index 7d8bf0fb..6aa42f74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,5 @@ flask_login flask_bcrypt password_strength Werkzeug==2.3.0 -python-dotenv \ No newline at end of file +python-dotenv +pytest \ No newline at end of file diff --git a/tests/test_app.py b/tests/test_app.py index 0b0454ef..fc6c6889 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -1,8 +1,9 @@ import pytest -from app.src.app import app +from app.src.app import create_app @pytest.fixture def client(): + app = create_app() app.config['TESTING'] = True with app.test_client() as client: yield client