From ab68f57f83557a3b6447883d6da1cfa670b63152 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 10 Jan 2018 20:33:52 +0100 Subject: [PATCH] Use timestamp for relative timestamp human test --- tsstats/tests/test_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py index 945d778..5aebd00 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -72,7 +72,7 @@ def test_lastseen_relative(output): soup = BeautifulSoup(open(output), 'html.parser') assert soup.find('ul', id='1.onlinetime')\ .select('div.hint--left')[0]['data-hint'] == \ - '2 years ago' + pendulum.create(2015, 5, 18).diff_for_humans() render_servers(servers, output, lastseen_relative=False) soup = BeautifulSoup(open(output), 'html.parser') assert soup.find('ul', id='1.onlinetime')\