mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
refactor(routes): move gallery domain into routes/gallery subpackage (#4903)
Move the gallery route domain into routes/gallery/ while preserving backward-compatible legacy import shims. - app imports the canonical gallery route module - canonical gallery route code imports canonical gallery helpers - legacy gallery route/helper paths remain compatibility aliases - add shim regression coverage for module identity and monkeypatch behavior - repoint gallery source-introspection tests to the canonical paths No intended behavior change.
This commit is contained in:
@@ -377,7 +377,7 @@ def test_compare_endpoint_key_lookup_is_owner_scoped():
|
||||
|
||||
|
||||
def test_gallery_image_endpoint_lookups_are_owner_scoped():
|
||||
body = Path("routes/gallery_routes.py").read_text(encoding="utf-8")
|
||||
body = Path("routes/gallery/gallery_routes.py").read_text(encoding="utf-8")
|
||||
helper_body = body.split("def _visible_image_endpoint_query", 1)[1].split(
|
||||
"def _first_visible_image_endpoint", 1
|
||||
)[0]
|
||||
|
||||
Reference in New Issue
Block a user