(
make_form_doc: typing.Callable,
settings: Settings,
client: TestClient,
form_doc: str,
expected_error: str,
)
| 115 | ], |
| 116 | ) |
| 117 | def 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 | |
| 130 | def test_errors_with_valid_doc( |
nothing calls this directly
no test coverage detected