创建测试用 Flask 应用
()
| 13 | |
| 14 | @pytest.fixture |
| 15 | def app(): |
| 16 | """创建测试用 Flask 应用""" |
| 17 | from backend.app import create_app |
| 18 | app = create_app() |
| 19 | app.config['TESTING'] = True |
| 20 | return app |
| 21 | |
| 22 | |
| 23 | @pytest.fixture |
nothing calls this directly
no test coverage detected