for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import pytest
@pytest.fixture
def app():
import sys
sys.path.append('.')
from sample_application import create_app
return create_app()
def client(app):
return app.test_client()
def test_index(client):
client.get('/')