# tests/conftest.py import pytest from wsgi import create_app from wsgi.configs import TestingConfig @pytest.fixture() def app(): app = create_app(custom_config=TestingConfig) # other setup can go here yield app # clean up / reset resources here @pytest.fixture() def http_client(app): return app.test_client() @pytest.fixture() def cli_runner(app): return app.test_cli_runner()