mirror of
				https://github.com/Thor77/TeamspeakStats.git
				synced 2025-11-03 23:32:45 -05:00 
			
		
		
		
	Test parsing results are consistent
independent from using cache or not
This commit is contained in:
		
							parent
							
								
									97425aa08d
								
							
						
					
					
						commit
						7e8f3b31bb
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -73,3 +73,18 @@ def test_cache_integration(cache_path):
 | 
			
		|||
        testlog_path, online_dc=False, cache_path=cache_path
 | 
			
		||||
    ))
 | 
			
		||||
    assert first_run == second_run
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_same_result_without_cache(cache_path):
 | 
			
		||||
    first_run = list(parse_logs(
 | 
			
		||||
        testlog_path, online_dc=False
 | 
			
		||||
    ))
 | 
			
		||||
    second_run = list(parse_logs(
 | 
			
		||||
        testlog_path, online_dc=False, cache_path=cache_path
 | 
			
		||||
    ))
 | 
			
		||||
    third_run = list(parse_logs(
 | 
			
		||||
        testlog_path, online_dc=False, cache_path=cache_path
 | 
			
		||||
    ))
 | 
			
		||||
    assert first_run == second_run
 | 
			
		||||
    assert first_run == third_run
 | 
			
		||||
    assert second_run == third_run
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue