Conversation
…t Roles tests - Created pytest configuration (pytest.ini, .coveragerc) - Added requirements-test.txt with test dependencies - Implemented comprehensive mock utilities in tests/conftest.py - Mock Discord objects (Bot, Guild, Member, Channel, Message, etc.) - Mock Red-DiscordBot Config system - Shared pytest fixtures for common test objects - Added 27 unit tests for Movie Vote cog - IMDB link parsing and validation - Movie management (add, remove, watch/unwatch) - Vote counting and scoring - Leaderboard generation and filtering - Emoji configuration - Complete lifecycle workflows - Added 18 unit tests for React Roles cog - Configuration setup and persistence - Type consistency tests (addresses bug #119) - Role assignment and removal logic - Multiple reactions per message - Edge cases and error handling - Updated CI workflow to run pytest tests - Added comprehensive test documentation in tests/README.md - All 45 tests passing Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/362f531a-da40-41ba-8771-57e31be89cde Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
…ration - Added comprehensive tests for Hat cog configuration (scale, rotation, offsets, flip) - Image dimension and position calculation tests - Scale and rotation validation tests - Image processing tests (flipping, aspect ratio, bytes conversion) - Edge cases (zero dimensions, negative values, extreme rotations) - Configuration persistence tests - Integration tests for complete workflows - All 76 tests passing (27 Movie Vote + 18 React Roles + 31 Hat) Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/362f531a-da40-41ba-8771-57e31be89cde Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
- Created TEST_COVERAGE_SUMMARY.md with detailed overview - Documented all 76 tests across 3 cogs - Explained test infrastructure and mock utilities - Provided benefits, future improvements, and usage guide - 2,058 lines of test code total - All tests passing with comprehensive coverage Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/362f531a-da40-41ba-8771-57e31be89cde Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Owner
|
@claude[agent] fix this issue |
The unittest.mock module is part of Python's standard library since Python 3.3 and doesn't need to be installed separately. Removed the invalid unittest-mock>=1.5.0 requirement that was causing CI installation to fail. Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/6d8109cf-9951-4321-b2bb-ff470111bd53 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Contributor
Author
... Fixed in 460d296. The |
Owner
|
@claude[agent] fix the linting now. |
- Removed unused imports (AsyncMock, Mock, patch) from test files - Removed unused Dict import from conftest.py - Removed unused hat_name variable in test_hat.py - Kept MagicMock import in conftest.py as it's used for permissions mock - All 76 tests still passing - Flake8 reports 0 errors Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/6d6156ac-eab1-400a-84fc-3b5ea1690cc5 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Contributor
Author
... Fixed in 05d5cfd. Removed all unused imports and the unused |
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.
No description provided.