Skip to content

Commit a2c2e9f

Browse files
committed
fixup add sample tests
1 parent 58dee40 commit a2c2e9f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/metrics/test_sample.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ def test_metric_sample_from_proto(
385385
else:
386386
assert sample.value is None
387387

388-
mock_to_datetime.assert_called_once()
389-
mock_enum_from_proto.assert_called_once()
390-
mock_bounds_from_proto.assert_called_once()
388+
mock_to_datetime.assert_called_once_with(timestamp)
389+
mock_enum_from_proto.assert_called_once_with(metric_value, Metric)
390+
mock_bounds_from_proto.assert_called_once_with(
391+
bounds_pb2.Bounds(lower=-10.0, upper=10.0)
392+
)

0 commit comments

Comments
 (0)