Skip to content

Commit 132c14b

Browse files
fix: Due to upstream change in dataset, updates expected results (#1761)
* Due to upstream change in dataset, updates expected results * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a65aaa6 commit 132c14b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/system/test_client.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1781,19 +1781,13 @@ def test_dbapi_fetch_w_bqstorage_client_large_result_set(self):
17811781
)
17821782

17831783
result_rows = [cursor.fetchone(), cursor.fetchone(), cursor.fetchone()]
1784-
17851784
field_name = operator.itemgetter(0)
17861785
fetched_data = [sorted(row.items(), key=field_name) for row in result_rows]
17871786
# Since DB API is not thread safe, only a single result stream should be
17881787
# requested by the BQ storage client, meaning that results should arrive
17891788
# in the sorted order.
17901789

17911790
expected_data = [
1792-
[
1793-
("by", "pg"),
1794-
("id", 1),
1795-
("timestamp", datetime.datetime(2006, 10, 9, 18, 21, 51, tzinfo=UTC)),
1796-
],
17971791
[
17981792
("by", "phyllis"),
17991793
("id", 2),
@@ -1804,6 +1798,11 @@ def test_dbapi_fetch_w_bqstorage_client_large_result_set(self):
18041798
("id", 3),
18051799
("timestamp", datetime.datetime(2006, 10, 9, 18, 40, 33, tzinfo=UTC)),
18061800
],
1801+
[
1802+
("by", "onebeerdave"),
1803+
("id", 4),
1804+
("timestamp", datetime.datetime(2006, 10, 9, 18, 47, 42, tzinfo=UTC)),
1805+
],
18071806
]
18081807

18091808
self.assertEqual(fetched_data, expected_data)

0 commit comments

Comments
 (0)