Skip to content

Commit

Permalink
test(comms): Update test configuration with consistent mock values
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and marklysze committed Jan 29, 2025
1 parent 440b00e commit ec52fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/agentchat/contrib/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def mock_telegram_handler(mocker):

@pytest.fixture
def discord_config() -> DiscordConfig:
return DiscordConfig(bot_token="fake_token", guild_name="TestGuild", channel_name="TestChannel")
return DiscordConfig(bot_token="mock-token", guild_name="mock-guild", channel_name="mock-channel")

@pytest.fixture
def slack_config() -> SlackConfig:
return SlackConfig(bot_token="xoxb-fake", channel_id="ABC123", signing_secret="secret")
return SlackConfig(bot_token="mock-token", channel_id="mock-channel", signing_secret="mock-secret")

@pytest.fixture
def telegram_config() -> TelegramConfig:
return TelegramConfig(bot_token="123456:ABC-DEF", destination_id="@testchannel")
return TelegramConfig(bot_token="mock-token", destination_id="mock-destination")

@pytest.fixture
def reply_monitor_config() -> ReplyMonitorConfig:
Expand Down
2 changes: 1 addition & 1 deletion test/agentchat/contrib/test_telegram_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

@pytest.mark.asyncio
async def test_telegram_config_validation():
config = TelegramConfig(bot_token="123456:ABC-DEF", destination_id="@testchannel")
config = TelegramConfig(bot_token="test-token", destination_id="test-channel")
assert config.validate_config() is True

with pytest.raises(ValueError, match="bot_token is required"):
Expand Down

0 comments on commit ec52fd3

Please sign in to comment.