def setUp(self): HelloWorldViewset = get_refreshed_helloworld_viewset() self.properties = {"content": "hello"} self.resource = HelloWorldViewset.hello(RequestContainer(query_args=dict(content="hello", related="world"))) self.adapter = BasicJSONAdapter(self.resource) self.data = json.loads(self.adapter.formatted_body)
def setUp(self): HelloWorldViewset = get_refreshed_helloworld_viewset() self.properties = {'content': 'hello'} self.resource = HelloWorldViewset.hello( RequestContainer( query_args=dict(content='hello', related='world'))) self.adapter = BasicJSONAdapter(self.resource) self.data = json.loads(self.adapter.formatted_body)
def setUp(self): ResourceMetaClass.registered_names_map.clear() ResourceMetaClass.registered_resource_classes.clear() HelloWorldViewset = get_refreshed_helloworld_viewset() self.properties = {"content": "hello"} self.resource = HelloWorldViewset.hello(RequestContainer(query_args=dict(content="hello", related="world"))) self.adapter = HalAdapter(self.resource) self.data = json.loads(self.adapter.formatted_body)
def setUp(self): HelloWorldViewset = get_refreshed_helloworld_viewset() self.resource = HelloWorldViewset.hello( RequestContainer(query_args={ 'content': 'hello', 'related': 'world' })) self.adapter = SirenAdapter(self.resource, base_url='http://localhost:') self.data = json.loads(self.adapter.formatted_body)
def setUp(self): ResourceMetaClass.registered_names_map.clear() ResourceMetaClass.registered_resource_classes.clear() HelloWorldViewset = get_refreshed_helloworld_viewset() self.properties = {'content': 'hello'} self.resource = HelloWorldViewset.hello(RequestContainer(query_args=dict(content='hello', related='world'))) self.adapter = HalAdapter(self.resource) self.data = json.loads(self.adapter.formatted_body)
def setUp(self): HelloWorldViewset = get_refreshed_helloworld_viewset() self.resource = HelloWorldViewset.hello(RequestContainer(query_args={'content': 'hello', 'related': 'world'})) self.adapter = SirenAdapter(self.resource, base_url='http://localhost:') self.data = json.loads(self.adapter.formatted_body)