mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
WIP: Test debugging + scaffolding
This commit is contained in:
parent
ec724109c0
commit
23ae0fa1cc
4 changed files with 53 additions and 2 deletions
|
@ -84,8 +84,15 @@ def output_should_not_contain(expected_output, cli_run):
|
|||
@then(parse("the output should be\n{expected_output}"))
|
||||
@then(parse('the output should be "{expected_output}"'))
|
||||
def output_should_be(expected_output, cli_run):
|
||||
from pprint import pprint
|
||||
actual = cli_run["stdout"].strip()
|
||||
print("ACTUAL: \n\n")
|
||||
print(type(actual))
|
||||
pprint(actual)
|
||||
expected = expected_output.strip()
|
||||
print("EXPECTED: \n\n")
|
||||
print(type(expected))
|
||||
pprint(expected)
|
||||
assert actual == expected
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue