Skip to content

Commit

Permalink
Added pytest requirement and modified app initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
rawanmahdi committed Jan 29, 2024
1 parent 89ffa0c commit e53b31a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ flask_login
flask_bcrypt
password_strength
Werkzeug==2.3.0
python-dotenv
python-dotenv
pytest
3 changes: 2 additions & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e53b31a

Please sign in to comment.