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

Function init_base_world

tests/conftest.py:74–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73@pytest.fixture(scope='session')
74def init_base_world():
75 with open(os.path.join(CONFIG_DIR, 'default.yml')) as c:
76 BaseWorld.apply_config('main', yaml.load(c, Loader=yaml.FullLoader))
77 BaseWorld.apply_config('agents', BaseWorld.strip_yml(os.path.join(CONFIG_DIR, 'agents.yml'))[0])
78 BaseWorld.apply_config('payloads', BaseWorld.strip_yml(os.path.join(CONFIG_DIR, 'payloads.yml'))[0])
79
80
81@pytest.fixture

Callers

nothing calls this directly

Calls 3

strip_ymlMethod · 0.80
apply_configMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected