def test_profiles(testapp, item_type): from jsonschema_serialize_fork import Draft4Validator res = testapp.get('/profiles/%s.json' % item_type).maybe_follow(status=200) errors = Draft4Validator.check_schema(res.json) assert not errors