MCPcopy Create free account
hub / github.com/PowerGridModel/power-grid-model / bool_params

Function bool_params

tests/unit/utils.py:223–227  ·  view source on GitHub ↗
(true_id: str, false_id: str | None = None, **kwargs)

Source from the content-addressed store, hash-verified

221
222
223def bool_params(true_id: str, false_id: str | None = None, **kwargs):
224 if false_id is None:
225 false_id = f"not-{true_id}"
226 yield pytest.param(False, **kwargs, id=false_id)
227 yield pytest.param(True, **kwargs, id=true_id)
228
229
230def dict_params(params: dict[Any, str], **kwargs):

Callers

nothing calls this directly

Calls 1

paramMethod · 0.80

Tested by

no test coverage detected