Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Feb 11, 2024
1 parent f883de6 commit e6efd15
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_gui/test_gui_projtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,8 @@ def getTransformSubMenu(menu: QMenu) -> list[str]:
ctxMenu.buildSingleSelectMenu(True)
actions = [x.text() for x in ctxMenu.actions() if x.text()]
assert actions == [
"Open Document", "View Document", "Create New ...", "Rename", "Toggle Active",
"Set Status to ...", "Transform ...", "Expand All", "Collapse All",
"Open Document", "View Document", "Create New ...", "Rename", "Rename to Heading",
"Toggle Active", "Set Status to ...", "Transform ...", "Expand All", "Collapse All",
"Duplicate from Here", "Move to Trash",
]
assert getTransformSubMenu(ctxMenu) == [
Expand All @@ -1239,8 +1239,9 @@ def getTransformSubMenu(menu: QMenu) -> list[str]:
ctxMenu.buildSingleSelectMenu(False)
actions = [x.text() for x in ctxMenu.actions() if x.text()]
assert actions == [
"Open Document", "View Document", "Create New ...", "Rename", "Toggle Active",
"Set Importance to ...", "Transform ...", "Duplicate Document", "Move to Trash",
"Open Document", "View Document", "Create New ...", "Rename", "Rename to Heading",
"Toggle Active", "Set Importance to ...", "Transform ...", "Duplicate Document",
"Move to Trash",
]
assert getTransformSubMenu(ctxMenu) == [
"Split Document by Headers",
Expand All @@ -1253,8 +1254,9 @@ def getTransformSubMenu(menu: QMenu) -> list[str]:
ctxMenu.buildSingleSelectMenu(False)
actions = [x.text() for x in ctxMenu.actions() if x.text()]
assert actions == [
"Open Document", "View Document", "Create New ...", "Rename", "Toggle Active",
"Set Status to ...", "Transform ...", "Duplicate Document", "Move to Trash",
"Open Document", "View Document", "Create New ...", "Rename", "Rename to Heading",
"Toggle Active", "Set Status to ...", "Transform ...", "Duplicate Document",
"Move to Trash",
]
assert getTransformSubMenu(ctxMenu) == [
"Convert to Novel Document", "Split Document by Headers",
Expand Down

0 comments on commit e6efd15

Please sign in to comment.