Deep nested fields must parse correctly.
()
| 200 | |
| 201 | |
| 202 | def test_deeply_nested_fields_parse(): |
| 203 | """Deep nested fields must parse correctly.""" |
| 204 | key_path = "[" + "][".join(f'"{p}"' for p in [f"l{i}" for i in range(NESTING_DEPTH)]) + "]" |
| 205 | fmt = f"{{{key_path}}}" |
| 206 | |
| 207 | def run(): |
| 208 | r = parse(fmt, "value") |
| 209 | return r is not None |
| 210 | result = _check_no_crash(run) |
| 211 | assert result is True |
| 212 | |
| 213 | |
| 214 | # ══════════════════════════════════════════════════════════════════════ |
nothing calls this directly
no test coverage detected