Document which tests need updates after feature removal. Tests referencing removed features: - test_verification.py (verification removed) - test_file_config.py (per-guild config removed) - test_ai.py (text moderation removed) conftest.py needs updates for removed model imports. Core feature tests should still work: - test_automod.py (spam detection) - test_nsfw_only_filtering.py (NSFW detection)
1.2 KiB
1.2 KiB
Testing TODO for Minimal Bot
Tests That Need Updates
The following test files reference removed features and need to be updated or removed:
To Remove (Features Removed)
tests/test_verification.py- Verification system removedtests/test_file_config.py- File-based per-guild config removedtests/test_ai.py- ModerationResult and text moderation removed
To Update (Features Changed)
tests/conftest.py- Remove imports for:BannedWord(removed model)ModerationLog,Strike,UserNote(removed models)GuildDefaults(if removed from config)
Tests That Should Still Work
tests/test_automod.py- Spam detection (core feature)tests/test_ratelimit.py- Rate limiting (still used)tests/test_automod_security.py- Security teststests/test_utils.py- Utility functionstests/test_nsfw_only_filtering.py- NSFW filtering (core feature)tests/test_config.py- Config loadingtests/test_database_integration.py- May need updates for removed models
Quick Fix
For now, tests can be skipped for removed features. Full test suite cleanup needed later.
Run Working Tests
pytest tests/test_automod.py tests/test_nsfw_only_filtering.py -v