MCPcopy
hub / github.com/apache/caldera / test_executor_search_duplicate

Method test_executor_search_duplicate

tests/objects/test_ability.py:91–97  ·  view source on GitHub ↗
(self, ability, executor)

Source from the content-addressed store, hash-verified

89 assert test_ability.find_executor(name='psh', platform='windows') is test_executor
90
91 def test_executor_search_duplicate(self, ability, executor):
92 test_executor = executor(name='psh', platform='windows')
93 test_ability = ability(executors=[test_executor])
94
95 found_executors = test_ability.find_executors(names=['psh', 'psh'], platform='windows')
96 assert len(found_executors) == 1
97 assert found_executors[0] is test_executor
98
99 def test_executor_search_duplicate_and_ordered(self, ability, executor):
100 test_executor_psh = executor(name='psh', platform='windows')

Callers

nothing calls this directly

Calls 3

executorFunction · 0.85
abilityFunction · 0.85
find_executorsMethod · 0.80

Tested by

no test coverage detected