Skip to content

Commit 80ed66a

Browse files
author
Cody D'Ambrosio
committed
Merge branch 'supprt-raw-yaml-block' of https://github.com/codambro/tappy into supprt-raw-yaml-block
2 parents e87aa3b + d352ac0 commit 80ed66a

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
@@ -47,6 +47,5 @@ def test_yaml_block(self):
4747
message: test_message
4848
severity: fail
4949
"""
50-
result = Result(False, 46, "passing", None, None,
51-
raw_yaml_block=raw_yaml_block)
50+
result = Result(False, 46, "passing", None, None, raw_yaml_block=raw_yaml_block)
5251
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
@@ -299,21 +299,29 @@ def test_adds_not_ok_with_diagnostics(self):
299299
@mock.patch("tap.line.LOAD_YAML", True)
300300
def test_adds_ok_with_yaml_block(self):
301301
tracker = Tracker()
302-
tracker.add_ok("FakeTestCase", "a description", raw_yaml_block="""\
302+
tracker.add_ok(
303+
"FakeTestCase",
304+
"a description",
305+
raw_yaml_block="""\
303306
message: test_message
304307
severity: pass
305-
""")
308+
""",
309+
)
306310
line = tracker._test_cases["FakeTestCase"][0]
307311
self.assertEqual("test_message", line.yaml_block["message"])
308312

309313
@mock.patch("tap.tracker.ENABLE_VERSION_13", True)
310314
@mock.patch("tap.line.LOAD_YAML", True)
311315
def test_adds_not_ok_with_yaml_block(self):
312316
tracker = Tracker()
313-
tracker.add_not_ok("FakeTestCase", "a description", raw_yaml_block="""\
317+
tracker.add_not_ok(
318+
"FakeTestCase",
319+
"a description",
320+
raw_yaml_block="""\
314321
message: test_message
315322
severity: fail
316-
""")
323+
""",
324+
)
317325
line = tracker._test_cases["FakeTestCase"][0]
318326
self.assertEqual("test_message", line.yaml_block["message"])
319327

0 commit comments

Comments
 (0)