Commit 297abf75aa5171d357b347b6b4071e956bbc82d9

Authored by decalage2
1 parent 93688d90

test_basic: disabled a few tests that were causing issues

Showing 1 changed file with 8 additions and 2 deletions
tests/olevba/test_basic.py
@@ -43,7 +43,10 @@ class TestOlevbaBasic(unittest.TestCase): @@ -43,7 +43,10 @@ class TestOlevbaBasic(unittest.TestCase):
43 elif 'warn' in line.lower(): 43 elif 'warn' in line.lower():
44 raise self.fail('Found "warn" in output line: "{}"' 44 raise self.fail('Found "warn" in output line: "{}"'
45 .format(line.rstrip())) 45 .format(line.rstrip()))
46 - self.assertIn('not encrypted', output) 46 + # TODO: I disabled this test because we do not log "not encrypted" as warning anymore
  47 + # to avoid other issues.
  48 + # If we really want to test this, then the test should be run with log level INFO:
  49 + # self.assertIn('not encrypted', output)
47 50
48 def test_rtf_behaviour(self): 51 def test_rtf_behaviour(self):
49 """Test behaviour of olevba when presented with an rtf file.""" 52 """Test behaviour of olevba when presented with an rtf file."""
@@ -58,7 +61,10 @@ class TestOlevbaBasic(unittest.TestCase): @@ -58,7 +61,10 @@ class TestOlevbaBasic(unittest.TestCase):
58 self.assertIn('FileOpenError', output) 61 self.assertIn('FileOpenError', output)
59 self.assertIn('is RTF', output) 62 self.assertIn('is RTF', output)
60 self.assertIn('rtfobj.py', output) 63 self.assertIn('rtfobj.py', output)
61 - self.assertIn('not encrypted', output) 64 + # TODO: I disabled this test because we do not log "not encrypted" as warning anymore
  65 + # to avoid other issues.
  66 + # If we really want to test this, then the test should be run with log level INFO:
  67 + # self.assertIn('not encrypted', output)
62 68
63 # check warnings 69 # check warnings
64 for line in output.splitlines(): 70 for line in output.splitlines():