diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 14:22:58 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 14:22:58 +0200 |
| commit | a1782de1037dc1f818c45257d978da888e87ff85 (patch) | |
| tree | 1c80597a51d7571d3449698bf5bb209a96fe2bdb /conftest.py | |
| parent | db979d36d0b9693cc81ffa0bdd29364c6218fc95 (diff) | |
Improve mocking logic
Diffstat (limited to 'conftest.py')
| -rw-r--r-- | conftest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/conftest.py b/conftest.py index 1e404c1c..05172b04 100644 --- a/conftest.py +++ b/conftest.py @@ -4,10 +4,9 @@ from main import FLASK_CORE_APP @pytest.fixture -def client(mocker): +def client(): """Returns a Flask API client to interact with.""" FLASK_CORE_APP.config['TESTING'] = True - mocker.patch('opendc.util.database.DB') with FLASK_CORE_APP.test_client() as client: yield client |
