mirror of
				https://github.com/Thor77/TeamspeakStats.git
				synced 2025-11-03 23:32:45 -05:00 
			
		
		
		
	Don't rely on style-attr for debug-label presence
This commit is contained in:
		
							parent
							
								
									3e7c2e610b
								
							
						
					
					
						commit
						ebb94d81e6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -28,7 +28,7 @@ def test_debug(output):
 | 
				
			||||||
    logger.setLevel(logging.INFO)
 | 
					    logger.setLevel(logging.INFO)
 | 
				
			||||||
    soup = BeautifulSoup(open(output), 'html.parser')
 | 
					    soup = BeautifulSoup(open(output), 'html.parser')
 | 
				
			||||||
    # check debug-label presence
 | 
					    # 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'):
 | 
					    for client_item in soup.find('ul', id='1.onlinetime').find_all('li'):
 | 
				
			||||||
        nick = client_item.find('span').text
 | 
					        nick = client_item.find('span').text
 | 
				
			||||||
        # check for right identifier
 | 
					        # check for right identifier
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue