From ef66b45e219ab018a1948d31041212fc45baeb6a Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 23 Nov 2016 21:06:55 +0100 Subject: [PATCH] Prefix clientlist-filter with section-filter because navbar-entries are also li --- 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 2c5fe13..a017025 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -36,7 +36,7 @@ def test_debug(output): soup = BeautifulSoup(open(output_path), 'html.parser') # check debug-label presence assert soup.find_all(style='color: red; padding-right: 10px;') - for client_item in soup.find_all('li'): + for client_item in soup.find('ul', id='1.onlinetime').find_all('li'): nick = client_item.find('span').text # check for right identifier nick, encl_identifier = nick.split()