Use timestamp for relative timestamp human test

This commit is contained in:
Thor77 2018-01-10 20:33:52 +01:00
parent 7fd4297c4d
commit ab68f57f83
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def test_lastseen_relative(output):
soup = BeautifulSoup(open(output), 'html.parser') soup = BeautifulSoup(open(output), 'html.parser')
assert soup.find('ul', id='1.onlinetime')\ assert soup.find('ul', id='1.onlinetime')\
.select('div.hint--left')[0]['data-hint'] == \ .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) render_servers(servers, output, lastseen_relative=False)
soup = BeautifulSoup(open(output), 'html.parser') soup = BeautifulSoup(open(output), 'html.parser')
assert soup.find('ul', id='1.onlinetime')\ assert soup.find('ul', id='1.onlinetime')\