MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / test_render_form

Function test_render_form

tests/forms/app/test_forms.py:153–175  ·  view source on GitHub ↗
(
    make_form_doc: typing.Callable,
    settings: Settings,
    client: TestClient,
)

Source from the content-addressed store, hash-verified

151
152
153def test_render_form(
154 make_form_doc: typing.Callable,
155 settings: Settings,
156 client: TestClient,
157):
158 settings.BEANCOUNT_DIR = make_form_doc(
159 textwrap.dedent(
160 """\
161 forms:
162 - name: form0
163 fields:
164 - name: name
165 type: str
166 operations:
167 - type: append
168 file: main.bean
169 content: "; name={{ name }}"
170 """
171 )
172 )
173 resp = client.get("/form/form0")
174 assert resp.status_code == 200
175 assert "form0" in resp.text
176
177
178def test_submit_form(

Callers

nothing calls this directly

Calls 1

make_form_docFunction · 0.85

Tested by

no test coverage detected