Skip to content

Instantly share code, notes, and snippets.

@elena-roff
Created March 12, 2019 13:36
Show Gist options
  • Select an option

  • Save elena-roff/6003300210f216b556d09d640af084ce to your computer and use it in GitHub Desktop.

Select an option

Save elena-roff/6003300210f216b556d09d640af084ce to your computer and use it in GitHub Desktop.

Revisions

  1. elena-roff created this gist Mar 12, 2019.
    10 changes: 10 additions & 0 deletions conftest.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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