From 205f1ccce62baebdabcffb8303471190269ab6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 2 Feb 2021 08:50:25 +0200 Subject: [PATCH] Upgrade croniter to 1.0.6 --- hc/api/tests/test_update_check.py | 2 +- hc/front/tests/test_update_timeout.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hc/api/tests/test_update_check.py b/hc/api/tests/test_update_check.py index 8c7e3c52..8c7f324a 100644 --- a/hc/api/tests/test_update_check.py +++ b/hc/api/tests/test_update_check.py @@ -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) diff --git a/hc/front/tests/test_update_timeout.py b/hc/front/tests/test_update_timeout.py index 81366669..31fde642 100644 --- a/hc/front/tests/test_update_timeout.py +++ b/hc/front/tests/test_update_timeout.py @@ -74,7 +74,7 @@ class UpdateTimeoutTestCase(BaseTestCase): def test_it_validates_cron_expression(self): self.client.login(username="alice@example.org", 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} diff --git a/requirements.txt b/requirements.txt index c7776576..f914610b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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