refactor(session): excise deprecated client.py shim and test_client.py
Remove the 32-line re-export shim (Issue #27 leftover) and its 588-line duplicate test file. Migrate 4 unique rate-limiter tests into test_session.py. Zero production imports of client.py confirmed. Net: -337 lines dead code, 425→413 tests collected. Closes #37
This commit is contained in:
1 parent
a8ff0b2134
commit
de4c08cfd0
5 files changed
+316
-620
No files matched your search
@@ -1,32 +0,0 @@
|
||||
"""Deprecated re-export shim — import from ``librofm_downloader.session`` instead."""
|
||||
|
||||
import warnings
|
||||
|
||||
from .session import (
|
||||
API_SEMAPHORE_CAPACITY,
|
||||
AuthError,
|
||||
LibroFmSession,
|
||||
M4BUnavailableError,
|
||||
)
|
||||
|
||||
warnings.warn(
|
||||
"Import from 'librofm_downloader.session' instead of 'librofm_downloader.client'. "
|
||||
"This shim will be removed in a future version.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
# Backward-compatible alias
|
||||
LibroFmClient = LibroFmSession
|
||||
|
||||
# Re-export DEFAULT_HEADERS for code that reads LibroFmClient.DEFAULT_HEADERS
|
||||
DEFAULT_HEADERS = LibroFmSession.DEFAULT_HEADERS
|
||||
|
||||
__all__ = [
|
||||
"LibroFmSession",
|
||||
"LibroFmClient",
|
||||
"AuthError",
|
||||
"M4BUnavailableError",
|
||||
"API_SEMAPHORE_CAPACITY",
|
||||
"DEFAULT_HEADERS",
|
||||
]
|
||||
Reference in new issue
Block a user