Use timestamp for relative timestamp human test
This commit is contained in:
parent
7fd4297c4d
commit
ab68f57f83
|
@ -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')\
|
||||||
|
|
Loading…
Reference in New Issue