mirror of
https://github.com/Thor77/TeamspeakStats.git
synced 2025-08-12 17:08:45 -04:00
Reformat testing code
This commit is contained in:
parent
90f6d98827
commit
e08bbdc902
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ def test_debug(output):
|
|||
logger.setLevel(logging.INFO)
|
||||
soup = BeautifulSoup(open(output_path), 'html.parser')
|
||||
# check debug-label presence
|
||||
debug_element = soup.find('nav').find('div', id='main-nav').find('span')
|
||||
assert debug_element.text == 'debug mode'
|
||||
assert soup.find('nav').find('div', 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
|
||||
|
|
Loading…
Add table
Reference in a new issue