From 6d2d2302ab4967f45b3d11eb00f3787223e95af0 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Fri, 23 Feb 2024 15:08:43 -0500 Subject: [PATCH] Remove support for cb7 --- darkseid/utils.py | 2 +- tests/test_utils.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/darkseid/utils.py b/darkseid/utils.py index 640e787..fbc2716 100644 --- a/darkseid/utils.py +++ b/darkseid/utils.py @@ -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) diff --git a/tests/test_utils.py b/tests/test_utils.py index e71a7fe..ffaaa61 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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" @@ -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