Skip to content

Commit

Permalink
TST: cannot add non-widget to qtbot
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Jul 29, 2022
1 parent eb258b7 commit 9ea3bc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions typhos/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ def widget_button(qtbot, monkeypatch):
return button


def test_sidebar_item(qtbot):
def test_sidebar_item():
param = SidebarParameter(name='test', embeddable=True)
item = TyphosSidebarItem(param, 0)
qtbot.addWidget(item)
assert len(item.toolbar.actions()) == 3
assert item.open_action.isEnabled()
assert item.embed_action.isEnabled()
Expand Down

0 comments on commit 9ea3bc6

Please sign in to comment.