general and template-tests conform pep8

This commit is contained in:
Thor77 2015-08-07 15:54:37 +02:00
parent c4bedcc690
commit 76868cae7e
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,8 @@ def test_main_config_not_found():
def test_main_idmap_load():
main(config_path='tests/res/config.ini', id_map_path='tests/res/id_map.json')
main(config_path='tests/res/config.ini',
id_map_path='tests/res/id_map.json')
def test_length():

View File

@ -24,4 +24,5 @@ class TestTemplate:
render_template(clients, output_path)
soup = BeautifulSoup(open(output_path), 'html.parser')
# check onlinetime-data
assert _format_seconds(clients['1'].onlinetime) == soup.find('span').text
assert _format_seconds(clients['1'].onlinetime) == \
soup.find('span').text