MCPcopy
hub / github.com/IBM/AssetOpsBench / _factory

Function _factory

src/evaluation/tests/conftest.py:15–24  ·  view source on GitHub ↗
(**overrides)

Source from the content-addressed store, hash-verified

13@pytest.fixture
14def make_scenario():
15 def _factory(**overrides) -> Scenario:
16 defaults = {
17 "id": "1",
18 "text": "What sensors are on Chiller 6?",
19 "type": "iot",
20 "category": "Knowledge Query",
21 "characteristic_form": "Should list temperature, pressure, vibration sensors.",
22 }
23 defaults.update(overrides)
24 return Scenario.from_raw(defaults)
25
26 return _factory
27

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
from_rawMethod · 0.45

Tested by

no test coverage detected