Skip to content

Commit

Permalink
🏹👾 Hunt mutants
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciencia de Datos • GECI committed Oct 13, 2023
1 parent 30f37b1 commit 4c13109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geci_caller/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def write_probability_progress_figure(

@cli.command()
def plot_comparative_catch_curves(
socorro_path: str = typer.Option(help="Path of input data"),
guadalupe_path: str = typer.Option(help="Path of input data"),
socorro_path: str = typer.Option(help="Path of Socorro data"),
guadalupe_path: str = typer.Option(help="Path of Guadalupe data"),
output_path: str = typer.Option(help="Path of figure to write"),
):
url = construct_entrypoint_url(
Expand Down
7 changes: 7 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ def test_call_entrypoint():
result = runner.invoke(cli, ["plot-cpue-vs-cum-captures", "--help"])
assert_command_with_input_and_output_paths(result)

result = runner.invoke(cli, ["plot-comparative-catch-curves", "--help"])
assert "--socorro-path " in result.stdout
assert " Path of Socorro data " in result.stdout
assert "--guadalupe-path " in result.stdout
assert " Path of Guadalupe data " in result.stdout
assert_output_path_argument(result)


def assert_command_with_input_and_output_paths(result):
assert_successful_command(result)
Expand Down

0 comments on commit 4c13109

Please sign in to comment.