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

Function test_errors_with_valid_doc

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

Source from the content-addressed store, hash-verified

128
129
130def test_errors_with_valid_doc(
131 make_form_doc: typing.Callable,
132 settings: Settings,
133 client: TestClient,
134):
135 settings.BEANCOUNT_DIR = make_form_doc(
136 textwrap.dedent(
137 """\
138 forms:
139 - name: form0
140 fields: []
141 operations: []
142 - name: form1
143 fields: []
144 operations: []
145 """
146 )
147 )
148 resp = client.get("/errors")
149 assert resp.status_code == 200
150 assert "Your form doc is valid" in resp.text
151
152
153def test_render_form(

Callers

nothing calls this directly

Calls 1

make_form_docFunction · 0.85

Tested by

no test coverage detected