Skip to content

Commit

Permalink
force fail on verbose and grab output plz
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Oct 30, 2024
1 parent e51c5ea commit cdaecc6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions fre/tests/test_fre_pp_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ def test_cli_fre_pp_checkout_opt_dne():

def test_cli_fre_pp_checkout_case():
''' fre pp checkout -e FOO -p BAR -t BAZ'''
result = runner.invoke(fre.fre, args=["pp", "checkout", "-e", "FOO", "-p", "BAR", "-t", "BAZ"])
result = runner.invoke(fre.fre, args=["pp", "checkout", "-e", "FOO", "-p", "BAR", "-t", "BAZ"], catch_exceptions=True)
print(result.stdout)
#click.echo(result.stderr)
print(result.exception)
directory = os.path.expanduser("~/cylc-src")+'/FOO__BAR__BAZ'
assert all( [ result.exit_code == 0,
Path(directory).exists() ] )

Path(os.path.expanduser("~")).exists(),
Path(os.path.expanduser("~/cylc-src")).exists(),
Path(directory).exists() , False] )

#-- fre pp configure-xml
def test_cli_fre_pp_configure_xml():
''' fre pp configure-xml '''
Expand Down

0 comments on commit cdaecc6

Please sign in to comment.