Use set rather than list to compare ack file and zip files difference

This commit is contained in:
venusbb
2018-01-18 14:44:23 +00:00
parent 357ec3a7d5
commit 99dda99890
2 changed files with 12 additions and 16 deletions

View File

@@ -1154,7 +1154,7 @@ def test_letter_not_raise_alert_if_ack_files_not_match_zip_list(mocker, notify_d
with pytest.raises(expected_exception=NoAckFileReceived) as e:
letter_raise_alert_if_no_ack_file_for_zip()
assert e.value.message == ['NOTIFY.20180111175009.ZIP', 'NOTIFY.20180111175010.ZIP']
assert e.value.message == str(set(['NOTIFY.20180111175009.ZIP', 'NOTIFY.20180111175010.ZIP']))
assert mock_file_list.call_count == 2
assert mock_get_file.call_count == 1
mock_deskpro.assert_called_once_with(