Commit ddeeb743873ffdafac99aa4ef77a34066f1b7e4a

Authored by Christian Herdtweck
1 parent 83720167

tests: add encrypted excel samples

These are encrypted with the standard password hard-coded into excel to
implement a form of write protection
tests/olevba/test_basic.py
... ... @@ -28,7 +28,11 @@ class TestOlevbaBasic(unittest.TestCase):
28 28 CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted')
29 29 CRYPT_RETURN_CODE = 9
30 30 ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ]
  31 + EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm',
  32 + 'autostart-encrypt-standardpassword.xlsb']
31 33 for filename in os.listdir(CRYPT_DIR):
  34 + if filename in EXCEPTIONS:
  35 + continue
32 36 full_name = join(CRYPT_DIR, filename)
33 37 for args in ADD_ARGS:
34 38 try:
... ...
tests/test-data/encrypted/autostart-encrypt-standardpassword.xlsb 0 → 100755
No preview for this file type
tests/test-data/encrypted/autostart-encrypt-standardpassword.xlsm 0 → 100755
No preview for this file type