From 1b89d39601898030ba6030705dea6dcab7c57c5e Mon Sep 17 00:00:00 2001 From: Ian <6273252+ilaflott@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:33:07 -0400 Subject: [PATCH] Update test_fre_pp_cli.py --- fre/tests/test_fre_pp_cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fre/tests/test_fre_pp_cli.py b/fre/tests/test_fre_pp_cli.py index 399c8e3e..7b1602c9 100644 --- a/fre/tests/test_fre_pp_cli.py +++ b/fre/tests/test_fre_pp_cli.py @@ -1,5 +1,7 @@ ''' test "fre pp" calls ''' +import os +from pathlib import Path from click.testing import CliRunner from fre import fre @@ -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 '''