general and template-tests conform pep8
This commit is contained in:
parent
c4bedcc690
commit
76868cae7e
|
@ -15,7 +15,8 @@ def test_main_config_not_found():
|
||||||
|
|
||||||
|
|
||||||
def test_main_idmap_load():
|
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():
|
def test_length():
|
||||||
|
|
|
@ -24,4 +24,5 @@ class TestTemplate:
|
||||||
render_template(clients, output_path)
|
render_template(clients, output_path)
|
||||||
soup = BeautifulSoup(open(output_path), 'html.parser')
|
soup = BeautifulSoup(open(output_path), 'html.parser')
|
||||||
# check onlinetime-data
|
# check onlinetime-data
|
||||||
assert _format_seconds(clients['1'].onlinetime) == soup.find('span').text
|
assert _format_seconds(clients['1'].onlinetime) == \
|
||||||
|
soup.find('span').text
|
||||||
|
|
Loading…
Reference in New Issue