1
0
Fork 0
mirror of https://github.com/Thor77/TeamspeakStats.git synced 2025-08-13 09:28:44 -04:00

Don't rely on style-attr for debug-label presence

This commit is contained in:
Thor77 2017-02-25 13:53:30 +01:00
parent 29347ffe90
commit 541df389ec

View file

@ -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