()
| 315 | |
| 316 | |
| 317 | def test_config_title_cls(): |
| 318 | class Config: |
| 319 | title = 'Testing' |
| 320 | |
| 321 | @validate_arguments(config={'title': 'Testing'}) |
| 322 | def foo(a: int, b: int): |
| 323 | return f'{a}, {b}' |
| 324 | |
| 325 | assert foo(1, 2) == '1, 2' |
| 326 | assert foo(1, b=2) == '1, 2' |
| 327 | assert foo.model.model_json_schema()['title'] == 'Testing' |
| 328 | |
| 329 | |
| 330 | def test_config_fields(): |
nothing calls this directly
no test coverage detected