From 562c92dae6c78c60262d49cffc77600bd5539bdb Mon Sep 17 00:00:00 2001 From: latte Date: Tue, 27 Jan 2026 20:16:14 +0100 Subject: [PATCH] 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) --- TESTING_TODO.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 TESTING_TODO.md diff --git a/TESTING_TODO.md b/TESTING_TODO.md new file mode 100644 index 0000000..a0d3d19 --- /dev/null +++ b/TESTING_TODO.md @@ -0,0 +1,35 @@ +# 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 +```