aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-08-24 17:55:38 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-08-25 19:42:06 +0200
commit560a22cf71aa29fbf175510cd0bc0595e4ce568a (patch)
treeab9c309bf353b071abc872f16b39b757260a493d /_pytest
parent88f02db6f1bdade3c745123a6886bf4f47a4ed9c (diff)
downloadwee-slack-560a22cf71aa29fbf175510cd0bc0595e4ce568a.tar.gz
Include channel prefix in key in get_channel_map
Fixes #587
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/conftest.py2
-rw-r--r--_pytest/test_topic_command.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py
index 0a770c7..87fa834 100644
--- a/_pytest/conftest.py
+++ b/_pytest/conftest.py
@@ -57,7 +57,7 @@ def team(realish_eventrouter):
@pytest.fixture
def channel_general(team):
- return team.channels[team.get_channel_map()['general']]
+ return team.channels[team.get_channel_map()['#general']]
@pytest.fixture
def user_alice(team):
diff --git a/_pytest/test_topic_command.py b/_pytest/test_topic_command.py
index 2137c27..5224ab7 100644
--- a/_pytest/test_topic_command.py
+++ b/_pytest/test_topic_command.py
@@ -29,7 +29,7 @@ def test_parse_topic_with_delete():
def test_parse_topic_with_channel():
channel_name, topic = parse_topic_command('/topic #general')
- assert channel_name == 'general'
+ assert channel_name == '#general'
assert topic is None
@@ -37,14 +37,14 @@ def test_parse_topic_with_channel_and_text():
channel_name, topic = parse_topic_command(
'/topic #general some topic text')
- assert channel_name == 'general'
+ assert channel_name == '#general'
assert topic == 'some topic text'
def test_parse_topic_with_channel_and_delete():
channel_name, topic = parse_topic_command('/topic #general -delete')
- assert channel_name == 'general'
+ assert channel_name == '#general'
assert topic == ''