Created
March 12, 2019 13:36
-
-
Save elena-roff/6003300210f216b556d09d640af084ce to your computer and use it in GitHub Desktop.
Setups the client fixture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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