Skip to content

Commit d589fbc

Browse files
committed
💄 Format code
1 parent 34e414a commit d589fbc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎tests/test_pydantic.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ class Model(pydantic.BaseModel):
5252
schema_generator=pydantic.json_schema.GenerateJsonSchema
5353
)
5454
schema_json = json.dumps(schema)
55-
val = '{"properties": {"content": {"examples": ["data:text/plain;charset=utf-8;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu"], "pattern": "data:(?P<mimetype>[\\\w]+\\\/[\\\w\\\-\\\+\\\.]+)?(?:\\\;name\\\=(?P<name>[\\\w\\\.\\\-%!*\'~\\\(\\\)]+))?(?:\\\;charset\\\=(?P<charset>[\\\w\\\-\\\+\\\.]+))?(?P<base64>\\\;base64)?,(?P<data>.*)", "title": "DataURI", "type": "string"}}, "required": ["content"], "title": "Model", "type": "object"}'
55+
val = (
56+
r'{"properties": {"content": {"examples": ["data:text/plain;charset=utf-8;base64,VGhlIHF1aWNrIGJyb3duIGZveC'
57+
r'BqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu"], "pattern": "data:(?P<mimetype>[\\w]+\\/[\\w\\-\\+\\.]+)?(?:\\;name\\='
58+
r"(?P<name>[\\w\\.\\-%!*'~\\(\\)]+))?(?:\\;charset\\=(?P<charset>[\\w\\-\\+\\.]+))?(?P<base64>\\;base64)?,(?P"
59+
r'<data>.*)", "title": "DataURI", "type": "string"}}, "required": ["content"], "title": "Model", "type": "obj'
60+
r'ect"}'
61+
)
5662
assert schema_json == val

0 commit comments

Comments
 (0)