# Path: inspire_schemas/api.py



import json
import os
import jsonschema
import pytest
import six
from inspire_schemas import api
                " can."
            )
        else:
            data[key] = 42
        break
    else:
        raise Exception('Unable to change anythng on data "%s"' % data)

    return data


@pytest.mark.parametrize(
    'schema_name',
    get_schema_names(FIXTURES_PATH),
    ids=get_schema_names(FIXTURES_PATH),
)
def test_schemas_validate(schema_name):
    example_data = load_example(schema_name)
    api.validate(data=example_data, schema=schema_name)


@pytest.mark.parametrize(
    'schema_name',
    get_schema_names(FIXTURES_PATH),
    ids=get_schema_names(FIXTURES_PATH),
)
def test_schemas_validate_negative(schema_name):
    example_data = load_example(schema_name)
    example_data = change_something(example_data)
    with pytest.raises(jsonschema.ValidationError):

# Path: inspire_schemas/api.py



# Path: tests/integration/test_validate.py
import json
import os
import jsonschema
import pytest
import six
from inspire_schemas import api

                " can."
            )
        else:
            data[key] = 42
        break
    else:
        raise Exception('Unable to change anythng on data "%s"' % data)

    return data


@pytest.mark.parametrize(
    'schema_name',
    get_schema_names(FIXTURES_PATH),
    ids=get_schema_names(FIXTURES_PATH),
)
def test_schemas_validate(schema_name):
    example_data = load_example(schema_name)
    api.validate(data=example_data, schema=schema_name)


@pytest.mark.parametrize(
    'schema_name',
    get_schema_names(FIXTURES_PATH),
    ids=get_schema_names(FIXTURES_PATH),
)
def test_schemas_validate_negative(schema_name):
    example_data = load_example(schema_name)
    example_data = change_something(example_data)
    with pytest.raises(jsonschema.ValidationError):

        api.validate(data=example_data, schema=schema_name)