Skip to content

Commit 8a75fc2

Browse files
Add python test for importing metrics/metric_sample.proto
Signed-off-by: Tiyash Basu <[email protected]>
1 parent 927f08d commit 8a75fc2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pytests/test_common.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ def test_module_import_metrics_bounds() -> None:
2525
assert bounds_pb2_grpc is not None
2626

2727

28+
def test_module_import_metrics_metric_sample() -> None:
29+
"""Test that the modules can be imported."""
30+
# pylint: disable=import-outside-toplevel
31+
from frequenz.api.common.v1.metrics import metric_sample_pb2
32+
33+
assert metric_sample_pb2 is not None
34+
35+
# pylint: disable=import-outside-toplevel
36+
from frequenz.api.common.v1.metrics import metric_sample_pb2_grpc
37+
38+
assert metric_sample_pb2_grpc is not None
39+
40+
2841
def test_module_import_grid() -> None:
2942
"""Test that the modules can be imported."""
3043
# pylint: disable=import-outside-toplevel

0 commit comments

Comments
 (0)