MCPcopy Index your code
hub / github.com/apache/caldera / test_ability_name_duplication

Method test_ability_name_duplication

tests/objects/test_ability.py:114–118  ·  view source on GitHub ↗
(self, event_loop, data_svc)

Source from the content-addressed store, hash-verified

112 assert len(list(test_ability.executors)) == 0
113
114 def test_ability_name_duplication(self, event_loop, data_svc):
115 ability1 = event_loop.run_until_complete(data_svc.store(Ability(ability_id='12345', name='testA')))
116 ability2 = event_loop.run_until_complete(data_svc.store(Ability(ability_id='54321', name='testA')))
117 assert ability1.name != ability2.name
118 assert ability2.name == 'testA (2)'

Callers

nothing calls this directly

Calls 2

AbilityClass · 0.90
storeMethod · 0.45

Tested by

no test coverage detected