Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit c8d3cec

Browse files
committed
added more verify pipeline lines to system tests
1 parent f9687a0 commit c8d3cec

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

tests/system/test_system.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def test_query_stream_w_field_path(query_docs, database):
14441444
verify_pipeline(query)
14451445

14461446

1447-
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
1447+
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
14481448
def test_query_stream_w_start_end_cursor(query_docs, database):
14491449
collection, stored, allowed_vals = query_docs
14501450
num_vals = len(allowed_vals)
@@ -1458,6 +1458,7 @@ def test_query_stream_w_start_end_cursor(query_docs, database):
14581458
for key, value in values:
14591459
assert stored[key] == value
14601460
assert value["a"] == num_vals - 2
1461+
verify_pipeline(query)
14611462

14621463

14631464
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
@@ -1733,7 +1734,7 @@ def test_pipeline_w_read_time(query_docs, cleanup, database):
17331734
assert key != new_ref.id
17341735

17351736

1736-
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
1737+
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
17371738
def test_query_with_order_dot_key(client, cleanup, database):
17381739
db = client
17391740
collection_id = "collek" + UNIQUE_RESOURCE_ID
@@ -1770,6 +1771,9 @@ def test_query_with_order_dot_key(client, cleanup, database):
17701771
)
17711772
cursor_with_key_data = list(query4.stream())
17721773
assert found_data == [snap.to_dict() for snap in cursor_with_key_data]
1774+
verify_pipeline(query)
1775+
verify_pipeline(query2)
1776+
verify_pipeline(query3)
17731777

17741778

17751779
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
@@ -1863,7 +1867,7 @@ def test_collection_group_queries(client, cleanup, database):
18631867
verify_pipeline(query)
18641868

18651869

1866-
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
1870+
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
18671871
def test_collection_group_queries_startat_endat(client, cleanup, database):
18681872
collection_group = "b" + UNIQUE_RESOURCE_ID
18691873

@@ -1894,6 +1898,7 @@ def test_collection_group_queries_startat_endat(client, cleanup, database):
18941898
snapshots = list(query.stream())
18951899
found = set(snapshot.id for snapshot in snapshots)
18961900
assert found == set(["cg-doc2", "cg-doc3", "cg-doc4"])
1901+
verify_pipeline(query)
18971902

18981903
query = (
18991904
client.collection_group(collection_group)
@@ -1904,6 +1909,7 @@ def test_collection_group_queries_startat_endat(client, cleanup, database):
19041909
snapshots = list(query.stream())
19051910
found = set(snapshot.id for snapshot in snapshots)
19061911
assert found == set(["cg-doc2"])
1912+
verify_pipeline(query)
19071913

19081914

19091915
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
@@ -2724,6 +2730,7 @@ def test_repro_429(client, cleanup, database):
27242730
for snapshot in query2.stream():
27252731
print(f"id: {snapshot.id}")
27262732
verify_pipeline(query)
2733+
verify_pipeline(query2)
27272734

27282735

27292736
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
@@ -2883,7 +2890,7 @@ def test_count_query_stream_empty_aggregation(query, database):
28832890
assert "Aggregations can not be empty" in exc_info.value.message
28842891

28852892

2886-
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)
2893+
@pytest.mark.parametrize("database", TEST_DATABASES_W_ENTERPRISE, indirect=True)
28872894
def test_count_query_with_start_at(query, database):
28882895
"""
28892896
Ensure that count aggregation queries work when chained with a start_at
@@ -2900,6 +2907,7 @@ def test_count_query_with_start_at(query, database):
29002907
for result in count_query.stream():
29012908
for aggregation_result in result:
29022909
assert aggregation_result.value == expected_count
2910+
verify_pipeline(count_query)
29032911

29042912

29052913
@pytest.mark.parametrize("database", TEST_DATABASES, indirect=True)

0 commit comments

Comments
 (0)