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

Commit 6689172

Browse files
committed
fixed style
1 parent d5d6d52 commit 6689172

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_json.py

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

255255

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

tests/test_message.py

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

328328

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

0 commit comments

Comments
 (0)