From e9f1de310cd7a521497abc3a9f2ad6a442bc91d3 Mon Sep 17 00:00:00 2001 From: Matthew Gamble Date: Tue, 28 Feb 2017 08:43:18 +1100 Subject: [PATCH] Fix template test for debug mode --- 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 085abda..57ca92f 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('nav').find('span').text == 'debug mode' + assert soup.find('nav').find(id='main-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