Skip to content

Commit

Permalink
Adding tests for direct message with allowed channels
Browse files Browse the repository at this point in the history
  • Loading branch information
attzonko committed Feb 3, 2019
1 parent 9b93646 commit f1c50c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/behavior_tests/test_allowed_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@


def test_allowed_channels(driver): # noqa: F811

driver.send_direct_message('allowed_channel', tobot=True)
driver.wait_for_bot_direct_message(
'Driver in channel allowed!')

driver.send_private_channel_message('allowed_channel', tobot=True)
driver.wait_for_bot_private_channel_message(
'Driver in channel allowed!', tosender=True)

driver.send_private_channel_message('not_allowed_channel', tobot=True)
try:
driver.wait_for_bot_private_channel_message(
Expand Down

0 comments on commit f1c50c5

Please sign in to comment.