Ejemplo n.º 1
0
 def __init__(self, version=settings.DEFAULT_VERSION):
     self.version = version
     self._schema = helper.get_schema(self.version)
     self._validator = self._construct_validator()
Ejemplo n.º 2
0
    def test_raises(self, error, msg):
        flexmock(helper).should_receive('_load_markup').and_raise(error('foo'))
        with pytest.raises(exceptions.SchemaError) as e:
            helper.get_schema()

        assert msg in str(e)
Ejemplo n.º 3
0
 def test_signature(self, args):
     helper.get_schema(**args)
Ejemplo n.º 4
0
 def __init__(self, version=settings.DEFAULT_VERSION):
     self.version = version
     self._schema = helper.get_schema(self.version)
     self._validator = self._construct_validator()
Ejemplo n.º 5
0
    def test_raises(self, error, msg):
        flexmock(helper).should_receive('_load_markup').and_raise(error('foo'))
        with pytest.raises(exceptions.SchemaError) as e:
            helper.get_schema()

        assert msg in str(e)
Ejemplo n.º 6
0
 def test_signature(self, args):
     helper.get_schema(**args)