From a1782de1037dc1f818c45257d978da888e87ff85 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 24 Jun 2020 14:22:58 +0200 Subject: Improve mocking logic --- conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'conftest.py') 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 -- cgit v1.2.3