diff options
| author | Fuwn <[email protected]> | 2026-03-28 14:05:43 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-28 14:05:43 +0000 |
| commit | af626472415b821bb9bee6db99b0928b5ac46ede (patch) | |
| tree | 2352d5725ffd2bf705ea1e9b15772a8a1998a7f9 /tests/test_config.py | |
| parent | feat(umaddit_removal): Add additional match rules (diff) | |
| download | umabot-af626472415b821bb9bee6db99b0928b5ac46ede.tar.xz umabot-af626472415b821bb9bee6db99b0928b5ac46ede.zip | |
Fix spam detector duplicate counting
Diffstat (limited to 'tests/test_config.py')
| -rw-r--r-- | tests/test_config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index a160a84..71879c1 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -14,8 +14,10 @@ def test_config_from_env(): "REDDIT_CLIENT_SECRET": "test_client_secret", "REDDIT_USERNAME": "test_username", "REDDIT_PASSWORD": "test_password", + "OPENAI_API_KEY": "test_openai_key", "SUBREDDIT_NAME": "test_subreddit", "ROLEPLAY_MESSAGE": "Test roleplay message", + "DRY_RUN": "false", } with patch.dict(os.environ, test_env): @@ -40,6 +42,7 @@ def test_config_validation(): username="", password="", user_agent="test", + openai_api_key="", subreddit_name="", roleplay_message="" ) @@ -56,6 +59,7 @@ def test_config_validation_success(): username="test", password="test", user_agent="test", + openai_api_key="test", subreddit_name="test", roleplay_message="test" ) |