Fix tests.

This commit is contained in:
Pēteris Caune 2019-03-10 11:49:07 +02:00
parent e294ae0e9b
commit 212578c378
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -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")