Skip to content

Commit 2028322

Browse files
committed
Removed the wrong test function
1 parent 676d182 commit 2028322

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

tests/cli/test_clem_align_and_merge_cli.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,44 @@
22

33
import subprocess
44
import sys
5+
from pathlib import Path
56
from unittest import mock
67

78
from cryoemservices.cli import clem_align_and_merge
89

910

1011
@mock.patch("cryoemservices.wrappers.clem_align_and_merge.align_and_merge_stacks")
1112
def test_align_and_merge(mock_align_and_merge, tmp_path):
12-
"""Test that the cli runs the expected default args"""
13+
"""Test that the cli runs with all args provided"""
1314
(tmp_path / "file1").touch()
15+
(tmp_path / "file2").touch()
1416

1517
# Run the cli
1618
sys.argv = [
1719
"clem.align_and_merge",
1820
f"{tmp_path}/file1",
21+
f"{tmp_path}/file2",
22+
"--metadata",
23+
"metadata.xml",
24+
"--crop-to-n-frames",
25+
"5",
26+
"--align-self",
27+
"enabled",
28+
"--flatten",
29+
"min",
30+
"--align-across",
31+
"enabled",
32+
"--debug",
1933
]
2034
clem_align_and_merge.run()
2135

2236
mock_align_and_merge.assert_called_with(
23-
images=[tmp_path / "file1"],
24-
metadata=None,
25-
crop_to_n_frames=None,
26-
align_self="",
27-
flatten="mean",
28-
align_across="",
37+
images=[tmp_path / "file1", tmp_path / "file2"],
38+
metadata=Path("metadata.xml"),
39+
crop_to_n_frames=5,
40+
align_self="enabled",
41+
flatten="min",
42+
align_across="enabled",
2943
)
3044

3145

0 commit comments

Comments
 (0)