Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ def test_shell_options(load_get_command_parser):
check_list(opts, module_opts, False)

def check_list(opts, opts_list, in_list=True):
opts_set = set(opts)
for op in opts_list:
if in_list:
assert op in opts
assert op in opts_set, f"Element {op} not found in opts"
else:
assert op not in opts
assert op not in opts_set, f"Element {op} unexpectedly found in opts"

## Check completer
def test_autocomplete(load_get_command_parser):
Expand Down