From 132c14bbddfb61ea8bc408bef5e958e21b5b819c Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Fri, 5 Jan 2024 12:03:25 -0500 Subject: [PATCH] fix: Due to upstream change in dataset, updates expected results (#1761) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- tests/system/test_client.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/system/test_client.py b/tests/system/test_client.py index 92894455a..d7e56f7ff 100644 --- a/tests/system/test_client.py +++ b/tests/system/test_client.py @@ -1781,7 +1781,6 @@ def test_dbapi_fetch_w_bqstorage_client_large_result_set(self): ) result_rows = [cursor.fetchone(), cursor.fetchone(), cursor.fetchone()] - field_name = operator.itemgetter(0) fetched_data = [sorted(row.items(), key=field_name) for row in result_rows] # Since DB API is not thread safe, only a single result stream should be @@ -1789,11 +1788,6 @@ def test_dbapi_fetch_w_bqstorage_client_large_result_set(self): # in the sorted order. expected_data = [ - [ - ("by", "pg"), - ("id", 1), - ("timestamp", datetime.datetime(2006, 10, 9, 18, 21, 51, tzinfo=UTC)), - ], [ ("by", "phyllis"), ("id", 2), @@ -1804,6 +1798,11 @@ def test_dbapi_fetch_w_bqstorage_client_large_result_set(self): ("id", 3), ("timestamp", datetime.datetime(2006, 10, 9, 18, 40, 33, tzinfo=UTC)), ], + [ + ("by", "onebeerdave"), + ("id", 4), + ("timestamp", datetime.datetime(2006, 10, 9, 18, 47, 42, tzinfo=UTC)), + ], ] self.assertEqual(fetched_data, expected_data)