Browse Source

fix tests

pull/60/head
Pēteris Caune 9 years ago
parent
commit
cd512378bf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hc/api/tests/test_list_checks.py

+ 2
- 2
hc/api/tests/test_list_checks.py View File

@ -31,10 +31,10 @@ class ListChecksTestCase(BaseTestCase):
checks = { check["name"]: check for check in r.json()["checks"] }
self.assertEqual(checks["Alice 1"]["timeout"], 3600)
self.assertEqual(checks["Alice 1"]["grace"], 900)
self.assertEqual(checks["Alice 1"]["url"], self.checks[0].url())
self.assertEqual(checks["Alice 1"]["ping_url"], self.checks[0].url())
self.assertEqual(checks["Alice 2"]["timeout"], 86400)
self.assertEqual(checks["Alice 2"]["grace"], 3600)
self.assertEqual(checks["Alice 2"]["url"], self.checks[1].url())
self.assertEqual(checks["Alice 2"]["ping_url"], self.checks[1].url())
def test_it_shows_only_users_checks(self):
bob = User(username="bob", email="[email protected]")


Loading…
Cancel
Save