Skip to content

Commit 6d04c97

Browse files
committed
TST: Always make total_rows=0 in MockEmptyResult
1 parent 76a4867 commit 6d04c97

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/cloud/pub_sub/test_bigquery.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
class MockEmptyResult:
99
"""A mock empty query result."""
1010

11-
def __init__(self, total_rows=0):
12-
self.total_rows = total_rows
13-
1411
def result(self):
15-
return MagicMock(total_rows=self.total_rows)
12+
return MagicMock(total_rows=0)
1613

1714

1815
class MockEmptyBigQueryClient:

0 commit comments

Comments
 (0)