mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-30 17:47:50 +00:00 
			
		
		
		
	change assert to raise AssertionError
use if not condition: raise AssertionError() instead of assert condition according to codacy recommendation Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
		| @@ -202,4 +202,7 @@ def test_csv_response_generation(json_input, csv_output): | |||||||
|     expected_resp.sort_values(by=['response-id']) |     expected_resp.sort_values(by=['response-id']) | ||||||
|  |  | ||||||
|     for column in expected_resp: |     for column in expected_resp: | ||||||
|         assert list(resp[column]) == list(expected_resp[column]) |         if list(resp[column]) != list(expected_resp[column]): | ||||||
|  |             raise AssertionError('results are different') | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 EstherLerouzic
					EstherLerouzic