Skip to content

Commit 2b6ca8b

Browse files
committed
style(protobuf): apply ruff-format to assert statement in test
ruff-format reformatted the multi-line assert to put the condition arguments on their own line instead of wrapping in parentheses. Keeps pre-commit CI green. Co-Authored-By: Claude and aki1770-del <aki1770@gmail.com>
1 parent 310315c commit 2b6ca8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/vspec/test_protobuf_enum_allowed/test_protobuf_enum_allowed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ def test_protobuf_enum_for_allowed_string(tmp_path):
3737
cmd = f"vspec export protobuf -u {TEST_UNITS} -q {TEST_QUANT} --vspec {vspec} --output {output}"
3838
subprocess.run(cmd.split(), check=True)
3939
expected = HERE / "expected.proto"
40-
assert filecmp.cmp(output, expected), (
41-
f"Output differs from expected.\nGot:\n{output.read_text()}\nExpected:\n{expected.read_text()}"
42-
)
40+
assert filecmp.cmp(
41+
output, expected
42+
), f"Output differs from expected.\nGot:\n{output.read_text()}\nExpected:\n{expected.read_text()}"

0 commit comments

Comments
 (0)