WIP: Test debugging + scaffolding

This commit is contained in:
Aaron Lichtman 2024-01-15 15:00:16 -08:00
parent ec724109c0
commit 23ae0fa1cc
No known key found for this signature in database
GPG key ID: D046D019DC745EDA
4 changed files with 53 additions and 2 deletions

View file

@ -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