Skip to content

Commit

Permalink
fixing multipattern test
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshkhawar committed Apr 2, 2024
1 parent 8a2b8b5 commit 9b1b804
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions formats/image-dimension-stacking-tool/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,29 @@ def test_cli(synthetic_images: tuple[Union[str, Path]], output_directory: Path)
assert result.exit_code == 0


def test_multipattern_cli(
synthetic_multi_images: Union[str, Path], output_directory: Path
) -> None:
"""Test the command line."""
inp_dir = synthetic_multi_images
pattern = "tubhiswt_z{z:d+}_c{c:d+}_t{t:d+}.ome.tif"

runner = CliRunner()
result = runner.invoke(
app,
[
"--inpDir",
inp_dir,
"--filePattern",
pattern,
"--outDir",
output_directory,
],
)

assert result.exit_code == 0


def test_short_cli(
synthetic_images: tuple[Union[str, Path]], output_directory: Path
) -> None:
Expand Down

0 comments on commit 9b1b804

Please sign in to comment.