Esempio n. 1
0
 def setUp(self):
     self.storage = memory.Storage()
     self.resource = self.resource_class(request=self.get_request(),
                                         context=self.get_context())
     self.model = self.resource.model
     self.patch_known_field = mock.patch.object(self.resource,
                                                'is_known_field')
Esempio n. 2
0
 def setUp(self):
     self.storage = storage_memory.Storage()
     self.cache = cache_memory.Cache(cache_prefix="", cache_max_size_bytes=1000)
     self.resource = self.resource_class(request=self.get_request(), context=self.get_context())
     self.resource.schema = StrictSchema
     self.model = self.resource.model
     self.patch_known_field = mock.patch.object(self.resource, "is_known_field")
     self.validated = {"body": {}, "header": {}, "querystring": {}}
     self.resource.request.validated = self.validated
Esempio n. 3
0
 def setUp(self):
     self.storage = memory.Storage()
     self.resource = self.resource_class(request=self.get_request(),
                                         context=self.get_context())
     self.resource.schema = StrictSchema
     self.model = self.resource.model
     self.patch_known_field = mock.patch.object(self.resource,
                                                'is_known_field')
     self.validated = {'body': {}, 'header': {}, 'querystring': {}}
     self.resource.request.validated = self.validated