From 3207c0070cebede51f5d01cddcd655a0c19f1aef Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 25 Feb 2017 13:53:30 +0100 Subject: [PATCH] Don't rely on style-attr for debug-label presence --- tsstats/tests/test_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py index 5aebd00..bec8877 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -28,7 +28,7 @@ def test_debug(output): logger.setLevel(logging.INFO) soup = BeautifulSoup(open(output), '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