(
make_form_doc: typing.Callable,
settings: Settings,
client: TestClient,
)
| 151 | |
| 152 | |
| 153 | def 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 | |
| 178 | def test_submit_form( |
nothing calls this directly
no test coverage detected