

def test_pipeline_invalid_schema_json_raises(self):
    filepath = os.path.join(self.data_dir, 'case_insensitive_headers.csv')
    schema = os.path.join(self.data_dir, 'valid.csv')
    options = {
        'schema': {
            'schema': schema,
        },
    }
    self.assertRaises(InvalidJSONError, Pipeline, filepath, processors=('schema',), options=options)

dataset/ETHPy150Open frictionlessdata/goodtables/tests/test_schema.py TestSchemaProcessor.test_pipeline_invalid_schema_json_raises/original