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:
EstherLerouzic
2019-08-19 10:24:57 +01:00
parent c592c572d8
commit b388d143fd

View File

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