Skip to content

Commit

Permalink
[tests-] you should not override a submenu with a longname
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 27, 2023
1 parent 72b7327 commit c55fcd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions visidata/tests/test_menu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from visidata import vd, TableSheet
import pytest


class TestMenu:
Expand All @@ -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''')

0 comments on commit c55fcd2

Please sign in to comment.