From 7e5ee4172af5b9ea99b9a6ddbc3bd95f7fa05abc Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 25 Mar 2019 11:44:34 +0100 Subject: [PATCH] tests: Add exceptions to olevba return code test --- tests/olevba/test_basic.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/olevba/test_basic.py b/tests/olevba/test_basic.py index 5b90f5c..798fba5 100644 --- a/tests/olevba/test_basic.py +++ b/tests/olevba/test_basic.py @@ -28,8 +28,12 @@ class TestOlevbaBasic(unittest.TestCase): CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted') CRYPT_RETURN_CODE = 9 ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ] - EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm', - 'autostart-encrypt-standardpassword.xlsb'] + EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm', # These ... + 'autostart-encrypt-standardpassword.xlsb', # files ... + 'dde-test-encrypt-standardpassword.xls', # are ... + 'dde-test-encrypt-standardpassword.xlsx', # decrypted + 'dde-test-encrypt-standardpassword.xlsm', # per ... + 'dde-test-encrypt-standardpassword.xlsb'] # default. for filename in os.listdir(CRYPT_DIR): if filename in EXCEPTIONS: continue -- libgit2 0.21.4