Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit c7093ff

Browse files
committed
fixed ids
1 parent 5bd83d3 commit c7093ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Squid(proto.Message):
253253
assert re.search(r"massKg.*name", j)
254254

255255

256-
@pytest.mark.parametrize("expect_proto_7_plus", [True, False])
256+
@pytest.mark.parametrize("expect_proto_7_plus", [True, False], ids=["proto >= 7", "proto <= 6"])
257257
def test_json_float_precision(expect_proto_7_plus):
258258
if ((expect_proto_7_plus and int(proto.message._PROTOBUF_MAJOR_VERSION) < 7)) or (
259259
(not expect_proto_7_plus and int(proto.message._PROTOBUF_MAJOR_VERSION) >= 7)

tests/test_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class Color(proto.Enum):
326326
)
327327

328328

329-
@pytest.mark.parametrize("expect_proto_7_plus", [True, False])
329+
@pytest.mark.parametrize("expect_proto_7_plus", [True, False], ids=["proto >= 7", "proto <= 6"])
330330
def test_serialize_to_dict_float_precision(expect_proto_7_plus):
331331
if ((expect_proto_7_plus and int(proto.message._PROTOBUF_MAJOR_VERSION) < 7)) or (
332332
(not expect_proto_7_plus and int(proto.message._PROTOBUF_MAJOR_VERSION) >= 7)

0 commit comments

Comments
 (0)