Skip to content

Commit

Permalink
Update test_fre_pp_cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott authored Oct 30, 2024
1 parent ba3f07c commit 1b89d39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fre/tests/test_fre_pp_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
''' test "fre pp" calls '''

import os
from pathlib import Path
from click.testing import CliRunner

from fre import fre
Expand Down Expand Up @@ -39,6 +41,13 @@ def test_cli_fre_pp_checkout_opt_dne():
result = runner.invoke(fre.fre, args=["pp", "checkout", "optionDNE"])
assert result.exit_code == 2

def test_cli_fre_pp_checkout():
''' fre pp checkout -e FOO -p BAR -t BAZ'''
result = runner.invoke(fre.fre, args=["pp", "checkout", "-e", "FOO", "-p", "BAR", "-t", "BAZ"])
directory = os.path.expanduser("~/cylc-src")+'/FOO__BAR__BAZ'
assert all( [ result.exit_code == 0,
Path(directory).exists() ]

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

0 comments on commit 1b89d39

Please sign in to comment.