Skip to content

Commit

Permalink
make phase in indent test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mchok committed Nov 13, 2024
1 parent 01213ad commit ffdb6ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/api/console/test_cli_console_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,16 @@ def test_phase_is_cleaned_up_on_exception(cli_console):
def test_phase_inside_indented(cli_console, capsys):
cli_console.step("Outside of Indent")
with cli_console.indented():
with cli_console.phase("Enter"):
pass
cli_console.step("Step In Indent")
with cli_console.phase("Phase In Indent"):
cli_console.step("Step In Indent + Phase")

expected_output = dedent(
f"""\
Outside of Indent
Enter
Step In Indent
Phase In Indent
Step In Indent + Phase
"""
)

Expand Down

0 comments on commit ffdb6ea

Please sign in to comment.