Skip to content

Commit bcd8f2f

Browse files
committed
fix unit test setup for direct accesses
1 parent 935ac90 commit bcd8f2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdks/python/apache_beam/runners/dataflow/dataflow_metrics_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ class TestDataflowMetrics(unittest.TestCase):
261261

262262
def setup_mock_client_result(self, counter_list=None):
263263
mock_client = mock.Mock()
264-
mock_query_result = json_format.ParseDict(
265-
counter_list, dataflow.JobMetrics()._pb)
264+
mock_query_result = dataflow.JobMetrics()
265+
json_format.ParseDict(counter_list, mock_query_result._pb)
266266
mock_client.get_job_metrics.return_value = mock_query_result
267267
mock_job_result = mock.Mock()
268268
mock_job_result.job_id.return_value = 1

0 commit comments

Comments
 (0)