Commit 7e5ee4172af5b9ea99b9a6ddbc3bd95f7fa05abc

Authored by Christian Herdtweck
1 parent 5ab52bb6

tests: Add exceptions to olevba return code test

Showing 1 changed file with 6 additions and 2 deletions
tests/olevba/test_basic.py
@@ -28,8 +28,12 @@ class TestOlevbaBasic(unittest.TestCase): @@ -28,8 +28,12 @@ class TestOlevbaBasic(unittest.TestCase):
28 CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted') 28 CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted')
29 CRYPT_RETURN_CODE = 9 29 CRYPT_RETURN_CODE = 9
30 ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ] 30 ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ]
31 - EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm',  
32 - 'autostart-encrypt-standardpassword.xlsb'] 31 + EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm', # These ...
  32 + 'autostart-encrypt-standardpassword.xlsb', # files ...
  33 + 'dde-test-encrypt-standardpassword.xls', # are ...
  34 + 'dde-test-encrypt-standardpassword.xlsx', # decrypted
  35 + 'dde-test-encrypt-standardpassword.xlsm', # per ...
  36 + 'dde-test-encrypt-standardpassword.xlsb'] # default.
33 for filename in os.listdir(CRYPT_DIR): 37 for filename in os.listdir(CRYPT_DIR):
34 if filename in EXCEPTIONS: 38 if filename in EXCEPTIONS:
35 continue 39 continue