fix: resolve CI test failures and lint formatting#85
Merged
Conversation
- Add beautifulsoup4 to test CI deps (needed for HTML import tests) - Add get_session/delete_session mocks to prevent 500 on logout test - Update rate limit test threshold from 5 to 15 to match production config - Apply ruff format to 6 files that failed format check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🐳 Dev images published!
The dev/test instance will pick up these changes automatically (Portainer GitOps). To test locally: docker pull drumsergio/telegram-archive:dev
docker pull drumsergio/telegram-archive-viewer:dev |
PhenixStar
pushed a commit
to PhenixStar/Telegram-Archive
that referenced
this pull request
Mar 10, 2026
- Add beautifulsoup4 to test CI deps (needed for HTML import tests) - Add get_session/delete_session mocks to prevent 500 on logout test - Update rate limit test threshold from 5 to 15 to match production config - Apply ruff format to 6 files that failed format check
PhenixStar
pushed a commit
to PhenixStar/Telegram-Archive
that referenced
this pull request
Mar 11, 2026
- Add beautifulsoup4 to test CI deps (needed for HTML import tests) - Add get_session/delete_session mocks to prevent 500 on logout test - Update rate limit test threshold from 5 to 15 to match production config - Apply ruff format to 6 files that failed format check
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.
Summary
test_telegram_import):beautifulsoup4missing from CI test deps — added totests.ymlinstall stepTestLogout::test_logout_invalidates_session): After logout,_resolve_sessionfell back todb.get_session()which returned aMagicMockinstead ofNone, causingTypeError(500). Fixed by addingget_sessionanddelete_sessionto the mock DBTestRateLimiting::test_rate_limit_blocks_after_threshold): Test expected rate limit at 5 attempts, but production config was raised to 15 in v6.x. Updated test to matchruff format— applied formattingTest plan
🤖 Generated with Claude Code