def test_embeddable_json_schema(): expected = {'Point': POINT_SCHEMA, 'Foo': FOO_SCHEMA} assert expected == Foo.json_schema(embeddable=True) assert expected == JsonSchemaMixin.json_schema()
def test_embeddable_json_schema(): expected = {'Point': POINT_SCHEMA, 'Foo': FOO_SCHEMA} assert expected == Foo.json_schema(embeddable=True) expected = {'Point': POINT_SCHEMA, 'Foo': FOO_SCHEMA, 'Recursive': RECURSIVE_SCHEMA, 'OpaqueData': OPAQUE_DATA_SCHEMA} assert expected == JsonSchemaMixin.json_schema()