diff --git a/tests/conftest.py b/tests/conftest.py index 735926d..bcdb363 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,14 +2,13 @@ from flask import Flask from flask.testing import FlaskClient, FlaskCliRunner from google.cloud import firestore -from main import app as main_app @pytest.fixture() def app(mocker) -> Flask: + mocker.patch.object(firestore, "Client") - mocker.patch.object(firestore.Client, "__init__") - + from main import app as main_app app = main_app app.config.update({ "TESTING": True,