Skip to content

Commit

Permalink
#150: Add fixture for flask test app
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Nov 23, 2020
1 parent 08b8fb6 commit 00923bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pytest

from datagateway_api.common.config import config
from datagateway_api.src.main import app


@pytest.fixture(scope="package")
Expand Down Expand Up @@ -51,5 +52,6 @@ def single_investigation_test_data(icat_client):


@pytest.fixture()
def remove_single_investiation_result():
pass
def flask_test_app():
app.config["TESTING"] = True
return app.test_client()

0 comments on commit 00923bd

Please sign in to comment.