Skip to content

Commit

Permalink
Remove support for cb7
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Feb 23, 2024
1 parent 9acdff9 commit 6d2d230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion darkseid/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_recursive_filelist(pathlist: list[Path]) -> list[Path]:
for path_str in pathlist:
path = Path(path_str)
if path.is_dir():
for comic_format in ["*.cbz", "*.cb7", "*.cbr"]:
for comic_format in ["*.cbz", "*.cbr"]:
filelist.extend(iter(path.rglob(comic_format)))
else:
filelist.append(path)
Expand Down
4 changes: 1 addition & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def test_unique_name(tmp_path: Path) -> None:


def test_recursive_list_with_file(tmp_path: Path) -> None:
temp_cb7 = tmp_path / "foo.cb7"
temp_cb7.write_text("blah")
temp_file = tmp_path / "test.cbz"
temp_file.write_text("foo")
temp_cbr = tmp_path / "fugazi.cbr"
Expand All @@ -52,7 +50,7 @@ def test_recursive_list_with_file(tmp_path: Path) -> None:
temp_txt = tmp_path / "fail.txt"
temp_txt.write_text("yikes")

expected_result = [temp_cb7, temp_cbr, temp_file]
expected_result = [temp_cbr, temp_file]
result = utils.get_recursive_filelist([tmp_path])

assert result == expected_result
Expand Down

0 comments on commit 6d2d230

Please sign in to comment.