Merge pull request #2614 from alphagov/test-updates

Make a few fixtures Pytest 4 compliant and fix tests with errors
This commit is contained in:
Leo Hemsted
2019-09-23 10:22:00 +01:00
committed by GitHub
11 changed files with 48 additions and 62 deletions

View File

@@ -684,7 +684,7 @@ def test_process_letter_task_check_virus_scan_error(sample_letter_notification,
with pytest.raises(VirusScanError) as e:
process_virus_scan_error(filename)
assert "Virus scan error:" in str(e)
assert "Virus scan error:" in str(e.value)
mock_move_failed_pdf.assert_called_once_with(filename, ScanErrorType.ERROR)
assert sample_letter_notification.status == NOTIFICATION_TECHNICAL_FAILURE