Skip to content

Commit

Permalink
Added test_post_processing
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed Jan 26, 2019
1 parent e674cc4 commit f64f3b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ def test_filtercontenttypes(self):

@unittest.skipIf(
OPTIONS["THUG_ENABLED"].capitalize() == "False" or OPTIONS[
"VIRUSTOTAL_ENABLED"].capitalize() == "False" or OPTIONS[
"ZEMANA_ENABLED"].capitalize() == "False",
"VIRUSTOTAL_ENABLED"].capitalize() == "False",
"Complete post processing test skipped: "
"set env variables 'THUG_ENABLED', "
"'VIRUSTOTAL_ENABLED' and 'ZEMANA_ENABLED' to True")
Expand Down Expand Up @@ -337,12 +336,12 @@ def test_post_processing(self):
for i in t:
self.assertIn("tika", i)
self.assertIn("virustotal", i)
self.assertIn("zemana", i)
self.assertNotIn("zemana", i)
self.assertNotIn("thug", i)

for j in i.get("files", []):
self.assertIn("virustotal", j)
self.assertIn("zemana", j)
self.assertNotIn("zemana", j)
self.assertIn("thug", j)

def test_incorrect_padding(self):
Expand Down

0 comments on commit f64f3b4

Please sign in to comment.