diff --git a/tests/test_clamav.py b/tests/test_clamav.py index 906c280..48681d3 100644 --- a/tests/test_clamav.py +++ b/tests/test_clamav.py @@ -22,9 +22,8 @@ BASE_DIR = os.path.dirname(__file__) VIRUS_TXT_FILE_URL = "https://secure.eicar.org/eicar.com.txt" -# Below zip files are currently unavailable and tests are being disabled. NB: .zip uploads are not allowable. -# VIRUS_ZIP_FILE_URL = "https://secure.eicar.org/eicar_com.zip" -# VIRUS_DEEP_ZIP_FILE_URL = "https://secure.eicar.org/eicarcom2.zip" +VIRUS_ZIP_FILE_URL = "https://secure.eicar.org/eicar_com.zip" +VIRUS_DEEP_ZIP_FILE_URL = "https://secure.eicar.org/eicarcom2.zip" @tag('clamav', 'selenium-test') @@ -92,25 +91,25 @@ def test_upload_sample_b_ovid_bz_archive(self): abstract_file_path = os.path.join(BASE_DIR, "07-32-54-exercise-inflamm-breast-cancer-may-3-2019-expanded-terms.txt.gz") self._assert_file_upload(url=reverse("search_ovid_medline"), file_path=abstract_file_path) - # @tag('scanning') - # def test_scanning_ovid_zip_files(self): - # "Trigger virus scanner file uploads with EICAR zip with OVID upload form." - # self._assert_virus_scanning(reverse("search_ovid_medline"), VIRUS_ZIP_FILE_URL) - - # @tag('scanning') - # def test_scanning_ovid_deep_zip_files(self): - # "Trigger virus scanner file uploads with EICAR deep zip with OVID upload form." - # self._assert_virus_scanning(reverse("search_ovid_medline"), VIRUS_DEEP_ZIP_FILE_URL) - - # @tag('scanning') - # def test_scanning_pubmed_zip_files(self): - # "Trigger virus scanner file uploads with EICAR zip with PubMed upload form." - # self._assert_virus_scanning(reverse("search_pubmed"), VIRUS_ZIP_FILE_URL) - - # @tag('scanning') - # def test_scanning_oubmed_deep_zip_files(self): - # "Trigger virus scanner file uploads with EICAR deep zip with PubMed upload form." - # self._assert_virus_scanning(reverse("search_pubmed"), VIRUS_DEEP_ZIP_FILE_URL) + @tag('scanning') + def test_scanning_ovid_zip_files(self): + "Trigger virus scanner file uploads with EICAR zip with OVID upload form." + self._assert_virus_scanning(reverse("search_ovid_medline"), VIRUS_ZIP_FILE_URL) + + @tag('scanning') + def test_scanning_ovid_deep_zip_files(self): + "Trigger virus scanner file uploads with EICAR deep zip with OVID upload form." + self._assert_virus_scanning(reverse("search_ovid_medline"), VIRUS_DEEP_ZIP_FILE_URL) + + @tag('scanning') + def test_scanning_pubmed_zip_files(self): + "Trigger virus scanner file uploads with EICAR zip with PubMed upload form." + self._assert_virus_scanning(reverse("search_pubmed"), VIRUS_ZIP_FILE_URL) + + @tag('scanning') + def test_scanning_oubmed_deep_zip_files(self): + "Trigger virus scanner file uploads with EICAR deep zip with PubMed upload form." + self._assert_virus_scanning(reverse("search_pubmed"), VIRUS_DEEP_ZIP_FILE_URL) class ScanOnUploadTestCase(ScanOnUploadInterface):