From c55fcd2f0d8990690abdcd313a965f818832707e Mon Sep 17 00:00:00 2001 From: anjakefala Date: Thu, 26 Oct 2023 20:35:41 -0700 Subject: [PATCH] [tests-] you should not override a submenu with a longname --- visidata/tests/test_menu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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''')