Skip to content

Commit

Permalink
Use timestamp for relative timestamp human test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor77 committed Jan 10, 2018
1 parent 7fd4297 commit ab68f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsstats/tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')\
Expand Down

0 comments on commit ab68f57

Please sign in to comment.