aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-07-08 01:42:11 +0200
committerGravatar Johannes Christ <[email protected]>2018-07-09 01:23:19 +0200
commitae96901fee1653b35f5494a8d546cd768edd1e77 (patch)
tree26549f1b27d1d9c5f7fd43ba4eb4c9fd56a45b6d
parentAllow numbers in channel names. (diff)
Fix duplicate channel names in test.
-rw-r--r--tests/test_api_bot_off_topic_names.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_api_bot_off_topic_names.py b/tests/test_api_bot_off_topic_names.py
index 74146bc5..f0d0fe3e 100644
--- a/tests/test_api_bot_off_topic_names.py
+++ b/tests/test_api_bot_off_topic_names.py
@@ -58,6 +58,10 @@ class AddingChannelNamesToDatabaseEndpointTests(SiteTest):
self.assert200(response)
self.assertIn(self.CHANNEL_NAME, response.json)
+
+class AllowsNumbersInNames(SiteTest):
+ """Tests that the site allows names with numbers in them."""
+
def test_allows_numbers_in_names(self):
response = self.client.post(
f'/bot/off-topic-names?name=totallynot42',