diff options
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" ) |