Skip to content

Commit 4e7e014

Browse files
authored
Update test_fullFile.pyt
1 parent d44beef commit 4e7e014

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/Functional/test_fullFile.pyt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import create_cache
22
import struct
33
import unittest.mock
4+
import uuid
45
from ms_ovba_compression.ms_ovba import MsOvba
56
from vbaProjectCompiler.vbaProject import VbaProject
67
from vbaProjectCompiler.Models.Entities.docModule import DocModule
@@ -44,17 +45,15 @@ def test_fullFile():
4445
codePage = 0x04E4
4546
codePageName = "cp" + str(codePage)
4647
libidRef = LibidReference(
47-
"windows",
48-
"{00020430-0000-0000-C000-000000000046}",
48+
uuid.UUID("0002043000000000C000000000000046"),
4949
"2.0",
5050
"0",
5151
"C:\\Windows\\System32\\stdole2.tlb",
5252
"OLE Automation"
5353
)
5454
oleReference = ReferenceRecord(codePageName, "stdole", libidRef)
5555
libidRef2 = LibidReference(
56-
"windows",
57-
"{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}",
56+
uuid.UUID("2DF8D04C5BFA101BBDE500AA0044DE52"),
5857
"2.0",
5958
"0",
6059
"C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE16\\MSO.DLL",
@@ -71,7 +70,7 @@ def test_fullFile():
7170
# Add Modules
7271
this_workbook = DocModule("ThisWorkbook")
7372
this_workbook.cookie.value = 0xB81C
74-
guid = "{00020819-0000-0000-C000-000000000046}"
73+
guid = uuid.UUID("0002081900000000C000000000000046")
7574
this_workbook.create_cache()
7675
thisWorkbook.addVbBase(guid)
7776
module_path = "blank_files/ThisWorkbook.cls"
@@ -80,7 +79,7 @@ def test_fullFile():
8079

8180
sheet1 = DocModule("Sheet1")
8281
sheet1.cookie.value = 0x9B9A
83-
guid = guid = "{00020820-0000-0000-C000-000000000046}"
82+
guid = uuid.UUID("0002082000000000C000000000000046")
8483
sheet1.create_cache()
8584
sheet1.addVbBase(guid)
8685
module_path = "blank_files/Sheet1.cls"

0 commit comments

Comments
 (0)