Skip to content

Commit afa1877

Browse files
committed
Removed specific system test assertions
1 parent 6694640 commit afa1877

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/system/test_system.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,20 +236,19 @@ def test_collections_w_read_time(client, cleanup, database):
236236
cleanup(second_document.delete)
237237
second_document.create(data)
238238

239-
# We're just testing that we added one collection at read_time, not two.
240-
collections = list(client.collections(read_time=read_time))
241-
assert len(collections) == num_collections
242-
ids = [collection.id for collection in collections]
243-
assert second_collection_id not in ids
244-
assert first_collection_id in ids
245-
246239
# Test that listing current collections does have the second id.
247240
curr_collections = list(client.collections())
248-
assert len(curr_collections) == num_collections + 1
241+
assert len(curr_collections) > num_collections
249242
ids = [collection.id for collection in curr_collections]
250243
assert second_collection_id in ids
251244
assert first_collection_id in ids
252245

246+
# We're just testing that we added one collection at read_time, not two.
247+
collections = list(client.collections(read_time=read_time))
248+
ids = [collection.id for collection in collections]
249+
assert second_collection_id not in ids
250+
assert first_collection_id in ids
251+
253252

254253
@pytest.mark.parametrize("database", [None, FIRESTORE_OTHER_DB], indirect=True)
255254
def test_create_document(client, cleanup, database):

0 commit comments

Comments
 (0)