From 212578c378bffa2928c2206a4fb4ad064d780120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Sun, 10 Mar 2019 11:49:07 +0200 Subject: [PATCH] Fix tests. --- hc/front/tests/test_status_single.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc/front/tests/test_status_single.py b/hc/front/tests/test_status_single.py index c494cccc..b9c4c611 100644 --- a/hc/front/tests/test_status_single.py +++ b/hc/front/tests/test_status_single.py @@ -38,7 +38,7 @@ class StatusSingleTestCase(BaseTestCase): self.check.last_ping = p.created self.check.save() - timestamp = p.created.strftime("%s.%f") + timestamp = str(p.created.timestamp()) url = "/checks/%s/status/?u=%s" % (self.check.code, timestamp) self.client.login(username="alice@example.org", password="password")