()
| 96 | |
| 97 | @pytest.mark.skipif(not email_validator, reason='email_validator not installed') |
| 98 | def test_json_serialization_email(): |
| 99 | config_wrapper = ConfigWrapper({'arbitrary_types_allowed': False}) |
| 100 | gen = GenerateSchema(config_wrapper, None) |
| 101 | schema = gen.generate_schema(NameEmail) |
| 102 | serializer = SchemaSerializer(schema) |
| 103 | assert serializer.to_json(NameEmail('foo bar', 'foobaR@example.com')) == b'"foo bar <foobaR@example.com>"' |
| 104 | |
| 105 | |
| 106 | @pytest.mark.skipif(sys.platform.startswith('win'), reason='paths look different on windows') |
nothing calls this directly
no test coverage detected