Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove duplicated test
  • Loading branch information
Sparks29032 committed Jun 1, 2026
commit eb18888f3bbdd18e4c9e04110d663f9a736e0ada
72 changes: 0 additions & 72 deletions tests/test_morphio.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,78 +329,6 @@ def test_grid_selection(self, setup, tmp_path):
expected = filter(ignore_path, tf)
are_files_same(actual, expected)

def test_grid_selection(self, setup, tmp_path):
morph_file = self.testfiles[0]

# Save on default grid
tmp_default = tmp_path.joinpath("default")
tmp_default_name = tmp_default.resolve().as_posix()

opts, pargs = self.parser.parse_args(
[
"--multiple-morphs",
"-s",
tmp_default_name,
"-n",
"--save-names-file",
tssf,
"--xmax",
"35",
]
)

pargs = [testsequence_dir, morph_file]
multiple_morphs(self.parser, opts, pargs, stdout_flag=False)

tmp_default_morphs = tmp_default.joinpath("Morphs")

# Check the saved files are the same for verbose
common = []
for item in tmp_default_morphs.glob("**/*.*"):
if item.is_file():
common.append(item.relative_to(tmp_default_morphs).as_posix())
for file in common:
with open(tmp_default_morphs.joinpath(file)) as gf:
with open(test_saving_grid_default.joinpath(file)) as tf:
actual = filter(ignore_path, gf)
expected = filter(ignore_path, tf)
are_files_same(actual, expected)

# Save on original grid
tmp_original = tmp_path.joinpath("original")
tmp_original_name = tmp_original.resolve().as_posix()

opts, pargs = self.parser.parse_args(
[
"--multiple-morphs",
"-s",
tmp_original_name,
"-n",
"--save-names-file",
tssf,
"--xmax",
"35",
"-o",
]
)

pargs = [testsequence_dir, morph_file]
multiple_morphs(self.parser, opts, pargs, stdout_flag=False)

tmp_original_morphs = tmp_default.joinpath("Morphs")

# Check the saved files are the same for verbose
common = []
for item in tmp_original_morphs.glob("**/*.*"):
if item.is_file():
common.append(item.relative_to(tmp_original_morphs).as_posix())
for file in common:
with open(tmp_original_morphs.joinpath(file)) as gf:
with open(test_saving_grid_original.joinpath(file)) as tf:
actual = filter(ignore_path, gf)
expected = filter(ignore_path, tf)
are_files_same(actual, expected)

# Similar format as test_morph_outputs
def test_morph_diff_outputs(self, setup, tmp_path):
morph_file = self.testfiles[0]
Expand Down
Loading