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 43 elif 'warn' in line.lower():
44 44 raise self.fail('Found "warn" in output line: "{}"'
45 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 51 def test_rtf_behaviour(self):
49 52 """Test behaviour of olevba when presented with an rtf file."""
... ... @@ -58,7 +61,10 @@ class TestOlevbaBasic(unittest.TestCase):
58 61 self.assertIn('FileOpenError', output)
59 62 self.assertIn('is RTF', output)
60 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 69 # check warnings
64 70 for line in output.splitlines():
... ...