(
make_form_doc: typing.Callable,
settings: Settings,
client: TestClient,
)
| 128 | |
| 129 | |
| 130 | def 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 | |
| 153 | def test_render_form( |
nothing calls this directly
no test coverage detected