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

Function test_errors

tests/forms/app/test_forms.py:117–127  ·  view source on GitHub ↗
(
    make_form_doc: typing.Callable,
    settings: Settings,
    client: TestClient,
    form_doc: str,
    expected_error: str,
)

Source from the content-addressed store, hash-verified

115 ],
116)
117def test_errors(
118 make_form_doc: typing.Callable,
119 settings: Settings,
120 client: TestClient,
121 form_doc: str,
122 expected_error: str,
123):
124 settings.BEANCOUNT_DIR = make_form_doc(form_doc)
125 resp = client.get("/errors")
126 assert resp.status_code == 200
127 assert expected_error in resp.text
128
129
130def test_errors_with_valid_doc(

Callers

nothing calls this directly

Calls 1

make_form_docFunction · 0.85

Tested by

no test coverage detected