Skip to content

Instantly share code, notes, and snippets.

@elena-roff
Created March 12, 2019 13:36
Show Gist options
  • Save elena-roff/6003300210f216b556d09d640af084ce to your computer and use it in GitHub Desktop.
Save elena-roff/6003300210f216b556d09d640af084ce to your computer and use it in GitHub Desktop.
Setups the client fixture
import pytest
from <service> import app
# ex: app = flask.Flask(__name__, static_url_path='/static')
@pytest.fixture
def client():
app.app.config['TESTING'] = True
client = app.app.test_client()
yield client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment