Skip to content

Commit 10fd91c

Browse files
Fix UT
1 parent 233fa78 commit 10fd91c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_unittest/test_01_toolkit_icons.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,21 @@ def test_04_write_to_existing_file_but_no_panels(self):
9898
panel_names = [panel.attrib["label"] for panel in panels]
9999
assert len(panel_names) == 1
100100

101-
def validate_file_exists_and_pyaedt_tabs_added(self, file_path):
101+
@staticmethod
102+
def validate_file_exists_and_pyaedt_tabs_added(file_path):
102103
assert os.path.isfile(file_path) is True
103104
assert ET.parse(file_path) is not None
104105
tree = ET.parse(file_path)
105106
root = tree.getroot()
106107
panels = root.findall("./panel")
107108
panel_names = [panel.attrib["label"] for panel in panels]
108109
assert "Panel_PyAEDT" in panel_names
109-
files_to_verify = ["images/large/pyansys.png", "images/gallery/PyAEDT.png"]
110+
files_to_verify = [
111+
"images/large/pyansys.png",
112+
"images/gallery/console.png",
113+
"images/gallery/run_script.png",
114+
"images/gallery/toolkit_manager.png",
115+
]
110116
for file_name in files_to_verify:
111117
assert os.path.isfile(os.path.join(os.path.dirname(file_path), file_name))
112118
return root

0 commit comments

Comments
 (0)