MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / test_completions_iteration

Function test_completions_iteration

tests/test_completion.py:845–853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

843
844
845def test_completions_iteration() -> None:
846 items = [CompletionItem(1), CompletionItem(2)]
847 completions = Completions(items)
848
849 # Test __iter__
850 assert list(completions) == items
851
852 # Test __reversed__
853 assert list(reversed(completions)) == items[::-1]
854
855
856def test_numeric_sorting() -> None:

Callers

nothing calls this directly

Calls 2

CompletionItemClass · 0.90
CompletionsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…