Skip to content

Commit 4887830

Browse files
committed
ran blacken
1 parent 16c8ed8 commit 4887830

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/unit/data/_metrics/test_data_model.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def test_ctor_defaults(self):
3333
mock_type = mock.Mock()
3434
metric = self._make_one(mock_type)
3535
assert metric.op_type == mock_type
36-
assert metric.start_time_ns == pytest.approx(time.monotonic_ns(), abs=50e6) # 50 ms buffer
36+
assert metric.start_time_ns == pytest.approx(
37+
time.monotonic_ns(), abs=50e6
38+
) # 50 ms buffer
3739
assert metric.active_attempt is None
3840
assert metric.cluster_id is None
3941
assert metric.zone is None
@@ -198,7 +200,9 @@ def test_start_attempt(self):
198200
metric.start_attempt()
199201
assert isinstance(metric.active_attempt, ActiveAttemptMetric)
200202
# make sure it was initialized with the correct values
201-
assert metric.active_attempt.start_time_ns == pytest.approx(time.monotonic_ns(), abs=50e6)
203+
assert metric.active_attempt.start_time_ns == pytest.approx(
204+
time.monotonic_ns(), abs=50e6
205+
)
202206
assert metric.active_attempt.gfe_latency_ns is None
203207
assert metric.active_attempt.grpc_throttling_time_ns == 0
204208
# should be in ACTIVE_ATTEMPT state after completing
@@ -507,7 +511,9 @@ def test_end_with_status(self):
507511
assert final_attempt.gfe_latency_ns == expected_attempt_gfe_latency_ns
508512
assert final_attempt.end_status == expected_status
509513
expected_duration = time.monotonic_ns() - expected_attempt_start_time
510-
assert final_attempt.duration_ns == pytest.approx(expected_duration, abs=50e6)
514+
assert final_attempt.duration_ns == pytest.approx(
515+
expected_duration, abs=50e6
516+
)
511517

512518
def test_end_with_status_w_exception(self):
513519
"""

0 commit comments

Comments
 (0)