Skip to content

Commit

Permalink
Remove reset_firestore
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed Jul 27, 2023
1 parent 87fbe62 commit b6bc9a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/datastore_firestore/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@


@pytest.fixture()
def existing_document(collection, reset_firestore):
# reset_firestore must be run before, not after this fixture
def existing_document(collection):
doc = collection.document("document")
doc.set({"x": 1})
return doc
Expand Down
3 changes: 1 addition & 2 deletions tests/datastore_firestore/test_async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@


@pytest.fixture(autouse=True)
def sample_data(collection, reset_firestore):
# reset_firestore must be run before, not after this fixture
def sample_data(collection):
for x in range(1, 6):
collection.add({"x": x})

Expand Down
3 changes: 1 addition & 2 deletions tests/datastore_firestore/test_async_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@


@pytest.fixture(autouse=True)
def sample_data(collection, reset_firestore):
# reset_firestore must be run before, not after this fixture
def sample_data(collection):
for x in range(1, 4):
collection.add({"x": x}, "doc%d" % x)

Expand Down

0 comments on commit b6bc9a4

Please sign in to comment.