Fix tests.

This commit is contained in:
Pēteris Caune 2020-04-06 13:36:46 +03:00
parent a1791ea404
commit f12a649c72
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -16,7 +16,7 @@ class AddSlackBtnTestCase(BaseTestCase):
def test_slack_button(self): def test_slack_button(self):
self.client.login(username="alice@example.org", password="password") self.client.login(username="alice@example.org", password="password")
r = self.client.get(self.url) r = self.client.get(self.url)
self.assertContains(r, "slack.com/oauth/authorize", status_code=200) self.assertContains(r, "slack.com/oauth/v2/authorize", status_code=200)
# There should now be a key in session # There should now be a key in session
self.assertTrue("add_slack" in self.client.session) self.assertTrue("add_slack" in self.client.session)