()
| 47 | |
| 48 | |
| 49 | def test_str(): |
| 50 | s = SchemaValidator(core_schema.str_schema()) |
| 51 | assert s.validate_json('"foobar"') == 'foobar' |
| 52 | with pytest.raises(ValidationError, match=r'Input should be a valid string \[type=string_type,'): |
| 53 | s.validate_json('false') |
| 54 | with pytest.raises(ValidationError, match=r'Input should be a valid string \[type=string_type,'): |
| 55 | s.validate_json('123') |
| 56 | |
| 57 | |
| 58 | def test_bytes(): |
nothing calls this directly
no test coverage detected