MCPcopy
hub / github.com/lektor/lektor / test_make_editor_session

Function test_make_editor_session

tests/test_editor.py:21–26  ·  view source on GitHub ↗
(pad, path, kwargs, expect)

Source from the content-addressed store, hash-verified

19 ],
20)
21def test_make_editor_session(pad, path, kwargs, expect):
22 sess = make_editor_session(pad, path, **kwargs)
23 if "exists" in expect:
24 assert sess.exists == expect["exists"]
25 if "datamodel" in expect:
26 assert sess.datamodel.id == expect["datamodel"]
27
28
29@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

make_editor_sessionFunction · 0.90

Tested by

no test coverage detected