diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py index 0cc8287..085abda 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -35,7 +35,7 @@ def test_debug(output): logger.setLevel(logging.INFO) soup = BeautifulSoup(open(output_path), 'html.parser') # check debug-label presence - assert soup.find_all(style='color: red; padding-right: 10px;') + assert soup.find('nav').find('span').text == 'debug mode' for client_item in soup.find('ul', id='1.onlinetime').find_all('li'): nick = client_item.find('span').text # check for right identifier