Test/consolidate test suite#58
Closed
ademboukabes wants to merge 50 commits into
Closed
Conversation
- Auto-approve group photos as public when no face matches any user - Add ExpireStaleApprovals SQL + service method to unblock photos where users never respond (default 7-day timeout via config) - Wire hourly expiry background task into FastAPI lifespan
This test validates the asynchronous workflow of the AI pipeline locally. It uploads a photo, triggers the NATS event, polls for the processing_job completion, and asserts that the photo status transitions to 'approved'. Test output: 1 passed in ~1.5s
fix(photo-approval): resolve group photo lifecycle gaps
# Conflicts: # app/infra/redis.py
fix(core): address code review findings
feat(auth): Implement Email OTP Verification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Context
This PR introduces a robust testing infrastructure to ensure the reliability of our core services. It adds extensive Unit, Integration, and End-to-End (E2E) tests tailored to the new asynchronous OTP authentication flow and the AI photo processing pipeline.
Test Coverage & Scope
1. Unit Tests (
tests/unit/)2. Integration Tests (
tests/integration/)3. End-to-End (E2E) Tests (
tests/e2e/)/registerendpoint, retrieving the OTP directly from Redis, validating via/register/verify, and successfully logging in.Verification