Skip to content

Commit

Permalink
[Tests] Removes commented code for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel ngigi authored and samuel ngigi committed Apr 4, 2018
1 parent c5572f1 commit c18c823
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hc/front/tests/test_add_pushbover.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ def test_it_adds_channel(self):
params = "pushover_user_key=a&nonce=n&prio=0"
r = self.client.get("/integrations/add_pushover/?%s" % params)
self.assertEqual(r.status_code, 302)
# assert r.status_code == 302

channels = list(Channel.objects.all())
self.assertEqual(len(channels), 1)
# assert len(channels) == 1
self.assertEqual(channels[0].value, "a|0")
# assert channels[0].value == "a|0"

@override_settings(PUSHOVER_API_TOKEN=None)
def test_it_requires_api_token(self):
Expand All @@ -39,7 +36,6 @@ def test_it_validates_nonce(self):
params = "pushover_user_key=a&nonce=INVALID&prio=0"
r = self.client.get("/integrations/add_pushover/?%s" % params)
self.assertEqual(r.status_code, 403)
# assert r.status_code == 403

def test_it_validates_priority(self):
self.client.login(username="alice@example.org", password="password")
Expand All @@ -51,4 +47,3 @@ def test_it_validates_priority(self):
params = "pushover_user_key=a&nonce=INVALID&prio=s"
r = self.client.get("/integrations/add_pushover/?%s" % params)
self.assertEqual(r.status_code, 403)
# assert r.status_code == 403

0 comments on commit c18c823

Please sign in to comment.