1 """Test Quick Switcher"""
2 # pylint: disable=redefined-outer-name
5 from cola
.widgets
import switcher
8 def test_switcher_item_with_only_key():
9 """item text would be key by building item without name"""
11 actual
= switcher
.switcher_item(key
)
13 assert actual
.key
== key
14 assert actual
.text() == key
17 def test_switcher_item_with_key_name_icon():
18 """item text would be name by building item with key and name"""
23 actual
= switcher
.switcher_item(key
, icon
, name
)
25 assert actual
.key
== key
26 assert actual
.text() == name