Quality cleanup refactoring

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-13 06:21:26 +03:00
parent 8f7deb3fca
commit 4eaf218f09
33 changed files with 957 additions and 207 deletions
@@ -0,0 +1,13 @@
# New Tests
No new tests added. All new internal code paths are exercised by existing e2e tests:
| New Code | Covered By |
|----------|------------|
| `_UnlockStateHolder` class | test_unlock_status_idle, test_unlock_missing_archive, test_unlock_concurrent_returns_current_state |
| Double-checked locking in `get_api_client()` | All endpoint tests (each calls get_api_client) |
| CDN upload exception raise | test_upload_resource, test_upload_download_roundtrip |
| Library PKCS7 unpadder (security.pyx) | test_upload_download_roundtrip (encrypt→decrypt roundtrip) |
| Library PKCS7 unpadder (binary_split.py) | test_unlock_with_corrupt_archive (error path) |
| `upload_file` exception propagation | test_upload_resource |
| `LOG_DIR` env var | Indirect (service starts successfully with default) |
@@ -0,0 +1,3 @@
# Obsolete Tests
None identified. Removed methods (get_user, list_files, check_resource, upload_to_cdn, download_from_cdn) and constants had no existing tests — they were orphans with no callers or test references.
@@ -0,0 +1,3 @@
# Updated Tests
No test updates required. All 18 e2e tests pass without modification — the refactoring preserved all public API contracts (endpoints, request/response formats, error codes).