Skip to content

Commit

Permalink
trying to mock firestore client
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal Ben Ivri committed Jul 30, 2024
1 parent 3ad96cb commit fb0413c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb0413c

Please sign in to comment.