()
| 39 | |
| 40 | |
| 41 | def test_parse_obj_fails(): |
| 42 | with pytest.raises(ValidationError) as exc_info: |
| 43 | parse_obj_as(int, 'a') |
| 44 | assert exc_info.value.errors(include_url=False) == [ |
| 45 | { |
| 46 | 'input': 'a', |
| 47 | 'loc': (), |
| 48 | 'msg': 'Input should be a valid integer, unable to parse string as an integer', |
| 49 | 'type': 'int_parsing', |
| 50 | } |
| 51 | ] |
| 52 | |
| 53 | |
| 54 | def test_parsing_model_naming(): |
nothing calls this directly
no test coverage detected