Browse Source

Upgrade croniter to 1.0.6

pull/476/head
Pēteris Caune 4 years ago
parent
commit
205f1ccce6
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      hc/api/tests/test_update_check.py
  2. +1
    -1
      hc/front/tests/test_update_timeout.py
  3. +1
    -1
      requirements.txt

+ 1
- 1
hc/api/tests/test_update_check.py View File

@ -255,7 +255,7 @@ class UpdateCheckTestCase(BaseTestCase):
self.check.schedule = "5 * * * *"
self.check.save()
samples = ["* invalid *", "1,2 3,* * * *", "0 0 31 2 *"]
samples = ["* invalid *", "1,2 61 * * *", "0 0 31 2 *"]
for sample in samples:
r = self.post(self.check.code, {"api_key": "X" * 32, "schedule": sample})
self.assertEqual(r.status_code, 400, "Did not reject '%s'" % sample)


+ 1
- 1
hc/front/tests/test_update_timeout.py View File

@ -74,7 +74,7 @@ class UpdateTimeoutTestCase(BaseTestCase):
def test_it_validates_cron_expression(self):
self.client.login(username="[email protected]", password="password")
samples = ["* invalid *", "1,2 3,* * * *", "0 0 31 2 *"]
samples = ["* invalid *", "1,2 61 * * *", "0 0 31 2 *"]
for sample in samples:
payload = {"kind": "cron", "schedule": sample, "tz": "UTC", "grace": 60}


+ 1
- 1
requirements.txt View File

@ -1,5 +1,5 @@
cron-descriptor==1.2.24
croniter==1.0.5
croniter==1.0.6
Django==3.1.6
django-compressor==2.4
fido2


Loading…
Cancel
Save