Files
GuardDen/TESTING_TODO.md
latte 562c92dae6 docs: Add testing TODO for minimal bot refactor
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)
2026-01-27 20:16:14 +01:00

36 lines
1.2 KiB
Markdown

# 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 removed
- `tests/test_file_config.py` - File-based per-guild config removed
- `tests/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 tests
- `tests/test_utils.py` - Utility functions
- `tests/test_nsfw_only_filtering.py` - NSFW filtering (core feature)
- `tests/test_config.py` - Config loading
- `tests/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
```bash
pytest tests/test_automod.py tests/test_nsfw_only_filtering.py -v
```