Browse Source

Remove unused "project" parameter in Pushbullet tests.

pull/419/head
Pēteris Caune 4 years ago
parent
commit
5ebb5958ea
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      hc/front/tests/test_add_pushbullet_complete.py

+ 4
- 4
hc/front/tests/test_add_pushbullet_complete.py View File

@ -21,7 +21,7 @@ class AddPushbulletTestCase(BaseTestCase):
mock_post.return_value.text = json.dumps(oauth_response)
mock_post.return_value.json.return_value = oauth_response
url = self.url + "?code=12345678&state=foo&project=%s" % self.project.code
url = self.url + "?code=12345678&state=foo"
self.client.login(username="[email protected]", password="password")
r = self.client.get(url, follow=True)
@ -40,7 +40,7 @@ class AddPushbulletTestCase(BaseTestCase):
session["add_pushbullet"] = ("foo", str(self.project.code))
session.save()
url = self.url + "?code=12345678&state=bar&project=%s" % self.project.code
url = self.url + "?code=12345678&state=bar"
self.client.login(username="[email protected]", password="password")
r = self.client.get(url)
@ -64,7 +64,7 @@ class AddPushbulletTestCase(BaseTestCase):
@override_settings(PUSHBULLET_CLIENT_ID=None)
def test_it_requires_client_id(self):
url = self.url + "?code=12345678&state=bar&project=%s" % self.project.code
url = self.url + "?code=12345678&state=foo"
self.client.login(username="[email protected]", password="password")
r = self.client.get(url)
@ -74,7 +74,7 @@ class AddPushbulletTestCase(BaseTestCase):
self.bobs_membership.rw = False
self.bobs_membership.save()
url = self.url + "?code=12345678&state=bar&project=%s" % self.project.code
url = self.url + "?code=12345678&state=foo"
self.client.login(username="[email protected]", password="password")
r = self.client.get(url)
self.assertEqual(r.status_code, 403)

Loading…
Cancel
Save