Browse Source

Fix tests.

pull/114/head
Pēteris Caune 8 years ago
parent
commit
a0241a9a74
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      hc/api/tests/test_create_check.py

+ 0
- 3
hc/api/tests/test_create_check.py View File

@ -146,7 +146,6 @@ class CreateCheckTestCase(BaseTestCase):
self.assertEqual(r.status_code, 201) self.assertEqual(r.status_code, 201)
doc = r.json() doc = r.json()
self.assertEqual(doc["kind"], "cron")
self.assertEqual(doc["schedule"], "5 * * * *") self.assertEqual(doc["schedule"], "5 * * * *")
self.assertEqual(doc["tz"], "Europe/Riga") self.assertEqual(doc["tz"], "Europe/Riga")
self.assertEqual(doc["grace"], 60) self.assertEqual(doc["grace"], 60)
@ -156,7 +155,6 @@ class CreateCheckTestCase(BaseTestCase):
def test_it_validates_cron_expression(self): def test_it_validates_cron_expression(self):
r = self.post({ r = self.post({
"api_key": "abc", "api_key": "abc",
"kind": "cron",
"schedule": "not-a-cron-expression", "schedule": "not-a-cron-expression",
"tz": "Europe/Riga", "tz": "Europe/Riga",
"grace": 60 "grace": 60
@ -167,7 +165,6 @@ class CreateCheckTestCase(BaseTestCase):
def test_it_validates_timezone(self): def test_it_validates_timezone(self):
r = self.post({ r = self.post({
"api_key": "abc", "api_key": "abc",
"kind": "cron",
"schedule": "* * * * *", "schedule": "* * * * *",
"tz": "not-a-timezone", "tz": "not-a-timezone",
"grace": 60 "grace": 60


Loading…
Cancel
Save