Coverage for tests/conftest.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-05-02 02:49 +0000

1import sys 

2import os 

3 

4sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) 

5 

6import pytest 

7from app import create_app 

8 

9@pytest.fixture 

10def app(): 

11 app = create_app() 

12 app.config.update({ 

13 "TESTING": True, 

14 }) 

15 with app.app_context(): 

16 yield app 

17 

18@pytest.fixture 

19def client(app): 

20 return app.test_client()