From 1f14d0c293c30d7c11dd73e19a1d1a99d9e09430 Mon Sep 17 00:00:00 2001 From: Kevin Nowaczyk Date: Wed, 15 Nov 2023 11:51:19 -0500 Subject: [PATCH 1/2] Update test_fullFile.py --- tests/Functional/test_fullFile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Functional/test_fullFile.py b/tests/Functional/test_fullFile.py index 3fc7bcaf1..dbea82714 100644 --- a/tests/Functional/test_fullFile.py +++ b/tests/Functional/test_fullFile.py @@ -173,14 +173,16 @@ def test_full_file() -> None: def create_cache() -> bytes: - vba_project = VbaProject() - vba_project.set_performance_cache_version(0x00B5) + modules = [] this_workbook = DocModule("ThisWorkbook") this_workbook.cookie.value = 0xB81C + modules.append(this_workbook) sheet1 = DocModule("Sheet1") sheet1.cookie.value = 0x9B9A + modules.append(sheet1) module1 = StdModule("Module1") module1.cookie.value = 0xB241 + modules.append(module1) libraries = [] delim = [] @@ -232,7 +234,7 @@ def create_cache() -> bytes: # index = 0x0046 i = 0 - for module in vba_project.modules: + for module in modules: name = module.modName.value.encode("utf_16_le") ca += struct.pack(" Date: Wed, 15 Nov 2023 11:54:03 -0500 Subject: [PATCH 2/2] Update test_fullFile.py --- tests/Functional/test_fullFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Functional/test_fullFile.py b/tests/Functional/test_fullFile.py index dbea82714..21e502e4c 100644 --- a/tests/Functional/test_fullFile.py +++ b/tests/Functional/test_fullFile.py @@ -237,7 +237,7 @@ def create_cache() -> bytes: for module in modules: name = module.modName.value.encode("utf_16_le") ca += struct.pack("