diff --git a/visidata/tests/test_menu.py b/visidata/tests/test_menu.py index f7f446801..a8c7ef4a2 100644 --- a/visidata/tests/test_menu.py +++ b/visidata/tests/test_menu.py @@ -1,5 +1,6 @@ from visidata import vd, TableSheet +import pytest class TestMenu: @@ -9,6 +10,5 @@ def test_menuitems(self): m = TableSheet().getMenuItem(['Column', 'Add column', 'foobar']) assert m - vd.addMenuItems('''Column > Add column > non-command''') - m = TableSheet().getMenuItem(['Column', 'Add column']) - assert m + with pytest.raises(AssertionError): + vd.addMenuItems('''Column > Add column > non-command''')