Skip to content

Commit d352ac0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4f1530b commit d352ac0

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

tests/test_line.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,5 @@ def test_yaml_block(self):
4646
message: test_message
4747
severity: fail
4848
"""
49-
result = Result(False, 46, "passing", None, None,
50-
raw_yaml_block=raw_yaml_block)
49+
result = Result(False, 46, "passing", None, None, raw_yaml_block=raw_yaml_block)
5150
self.assertEqual(result.yaml_block["message"], "test_message")

tests/test_tracker.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,19 +297,27 @@ def test_adds_not_ok_with_diagnostics(self):
297297

298298
def test_adds_ok_with_yaml_block(self):
299299
tracker = Tracker()
300-
tracker.add_ok("FakeTestCase", "a description", raw_yaml_block="""\
300+
tracker.add_ok(
301+
"FakeTestCase",
302+
"a description",
303+
raw_yaml_block="""\
301304
message: test_message
302305
severity: pass
303-
""")
306+
""",
307+
)
304308
line = tracker._test_cases["FakeTestCase"][0]
305309
self.assertEqual("test_message", line.yaml_block["message"])
306310

307311
def test_adds_not_ok_with_yaml_block(self):
308312
tracker = Tracker()
309-
tracker.add_not_ok("FakeTestCase", "a description", raw_yaml_block="""\
313+
tracker.add_not_ok(
314+
"FakeTestCase",
315+
"a description",
316+
raw_yaml_block="""\
310317
message: test_message
311318
severity: fail
312-
""")
319+
""",
320+
)
313321
line = tracker._test_cases["FakeTestCase"][0]
314322
self.assertEqual("test_message", line.yaml_block["message"])
315323

0 commit comments

Comments
 (0)