Coverage for test/conftest.py: 67%

9 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-23 02:22 +0000

1import pytest 

2from application import app 

3 

4 

5@pytest.fixture 

6def app(): 

7 # Create a test version of your Flask app 

8 app.config.update({'TESTING': True}) 

9 yield app 

10 

11 

12@pytest.fixture 

13def client(app): 

14 # Create a test client using the Flask test client 

15 return app.test_client()