refactor: extract book.py and path.py from downloader monolith
Move Book dataclass + from_library_row() into dedicated book.py. Extract sanitize/resolve_path/needs_subdirectory into path.py. Hard-cut import migration across 7 source+test files. 79 new tests. Closes #26
This commit is contained in:
1 parent
323fbf76fd
commit
fb219be248
13 files changed
+1268
-309
No files matched your search
@@ -6,12 +6,14 @@ import unittest
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
|
||||
from librofm_downloader.downloader import (
|
||||
Book,
|
||||
from librofm_downloader.book import Book
|
||||
from librofm_downloader.path import (
|
||||
sanitize,
|
||||
resolve_path,
|
||||
needs_subdirectory,
|
||||
_resolve_output_dir,
|
||||
resolve_path,
|
||||
sanitize,
|
||||
)
|
||||
from librofm_downloader.downloader import (
|
||||
download_m4b,
|
||||
download_zip_part,
|
||||
download_book,
|
||||
|
||||
Reference in new issue
Block a user