Skip to content

Commit 5d49abe

Browse files
committed
Added unit test
1 parent 10f6b1d commit 5d49abe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_cmd2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,9 @@ def test_get_macro_names(base_app):
18491849
assert len(base_app.macros) == 2
18501850
assert sorted(base_app.get_macro_names()) == ['bar', 'foo']
18511851

1852+
def test_get_settable_names(base_app):
1853+
assert sorted(base_app.get_settable_names()) == sorted(base_app.settable.keys())
1854+
18521855
def test_alias_no_subcommand(base_app, capsys):
18531856
out = run_cmd(base_app, 'alias')
18541857
assert "Usage: alias [-h]" in out[0]

0 commit comments

Comments
 (0)