Introduce service/repository dependency protocols and tests
This commit is contained in:
@@ -48,6 +48,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
|
||||
- Issue: Routers and higher-level services currently import concrete service modules directly, which prevents clean substitution and dependency override testing.
|
||||
- Propose: Define protocols or abstract base classes for major services and repositories, then wire concrete implementations through FastAPI dependency providers.
|
||||
- Test: Add tests that override a service dependency with a fake implementation and verify the router behavior remains correct.
|
||||
- Status: completed
|
||||
- Completed: Added service/repository protocols, injected auth/jail services via FastAPI dependencies, and added router tests for dependency overrides.
|
||||
|
||||
7. Move operational orchestration out of routers and into service/task layer
|
||||
- Goal: Keep routers thin and move operational control flow into service or task components.
|
||||
|
||||
Reference in New Issue
Block a user