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

Function test_planner

tests/conftest.py:453–464  ·  view source on GitHub ↗
(event_loop)

Source from the content-addressed store, hash-verified

451
452@pytest.fixture
453def test_planner(event_loop):
454 expected_planner = {'name': 'test planner',
455 'description': 'test planner',
456 'module': 'test',
457 'stopping_conditions': [],
458 'params': {},
459 'allow_repeatable_abilities': False,
460 'ignore_enforcement_modules': [],
461 'id': '123'}
462 test_planner = PlannerSchema().load(expected_planner)
463 event_loop.run_until_complete(BaseService.get_service('data_svc').store(test_planner))
464 return test_planner
465
466
467@pytest.fixture

Callers

nothing calls this directly

Calls 4

PlannerSchemaClass · 0.90
get_serviceMethod · 0.80
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected