Skip to content

Commit f6fe322

Browse files
Apply suggestions from code review
Co-authored-by: Adrien <avannson@buf.build>
1 parent cacc88e commit f6fe322

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_eval_error_message(test: simple_pb2.SimpleTest) -> str | None:
101101
env = celpy.Environment(runner_class=InterpretedRunner)
102102

103103

104-
def test_format_successes(subtests):
104+
def test_format_successes(subtests: pytest.Subtests):
105105
"""Tests success scenarios for string.format"""
106106
for format_test in _format_tests:
107107
with subtests.test(msg=format_test.name):
@@ -117,7 +117,7 @@ def test_format_successes(subtests):
117117
assert result == expected
118118

119119

120-
def test_format_errors(subtests):
120+
def test_format_errors(subtests: pytest.Subtests):
121121
"""Tests error scenarios for string.format"""
122122
for format_error_test in _format_error_tests:
123123
with subtests.test(msg=format_error_test.name):

0 commit comments

Comments
 (0)