def test_deletion(self, mock_request, meta_attr_schema):
     factories.create_meta_attribute_mapping(meta_attr_schema.id,
                                             self.entity_type,
                                             self.entity.id)
     mock_request.json_body = self.req_json_body
     mock_request.matchdict = self.req_matchdict
     self.delete_logic_method(mock_request)
     assert self.get_expected_meta_attr_response(self.entity_type,
                                                 self.entity.id) == {}
 def namespace_meta_attr_mapping(
     self,
     namespace_meta_attr,
     dummy_namespace
 ):
     factories.create_meta_attribute_mapping(
         namespace_meta_attr.id,
         Namespace.__name__,
         dummy_namespace.id
     )
 def test_deletion(self, mock_request, meta_attr_schema):
     factories.create_meta_attribute_mapping(
         meta_attr_schema.id,
         self.entity_type,
         self.entity.id
     )
     mock_request.json_body = self.req_json_body
     mock_request.matchdict = self.req_matchdict
     self.delete_logic_method(mock_request)
     assert self.get_expected_meta_attr_response(
         self.entity_type,
         self.entity.id
     ) == {}
Example #4
0
 def meta_attr_mapping_bar(self, namespace_foo, meta_attr_schema):
     return factories.create_meta_attribute_mapping(
         meta_attr_schema.id, namespace_foo.__class__.__name__,
         namespace_foo.id)
 def _setup_meta_attribute_mapping(self, meta_attr_schema, entity_id):
     factories.create_meta_attribute_mapping(
         meta_attr_schema.id,
         self.entity_model.__name__,
         entity_id
     )
 def source_meta_attr_mapping(self, source_meta_attr, dummy_src):
     factories.create_meta_attribute_mapping(
         source_meta_attr.id,
         Source.__name__,
         dummy_src.id
     )
Example #7
0
 def create_biz_src_meta_attr_mapping(self, meta_attr_schema, biz_source):
     factories.create_meta_attribute_mapping(
         meta_attr_schema.id,
         models.Source.__name__,
         biz_source.id
     )
 def meta_attr_mapping_bar(self, namespace_foo, meta_attr_schema):
     return factories.create_meta_attribute_mapping(
         meta_attr_schema.id,
         namespace_foo.__class__.__name__,
         namespace_foo.id
     )
 def _setup_meta_attribute_mapping(self, meta_attr_schema, biz_source):
     factories.create_meta_attribute_mapping(
         meta_attr_schema.id,
         self.entity_type,
         biz_source.id
     )
 def _setup_meta_attribute_mapping(self, meta_attr_schema, biz_source):
     factories.create_meta_attribute_mapping(meta_attr_schema.id,
                                             self.entity_type,
                                             biz_source.id)
Example #11
0
 def create_biz_src_meta_attr_mapping(self, meta_attr_schema, biz_source):
     factories.create_meta_attribute_mapping(meta_attr_schema.id,
                                             models.Source.__name__,
                                             biz_source.id)
 def _setup_meta_attribute_mapping(self, meta_attr_schema, entity_id):
     factories.create_meta_attribute_mapping(meta_attr_schema.id,
                                             self.entity_model.__name__,
                                             entity_id)
 def source_meta_attr_mapping(self, source_meta_attr, dummy_src):
     factories.create_meta_attribute_mapping(source_meta_attr.id,
                                             Source.__name__, dummy_src.id)
 def namespace_meta_attr_mapping(self, namespace_meta_attr,
                                 dummy_namespace):
     factories.create_meta_attribute_mapping(namespace_meta_attr.id,
                                             Namespace.__name__,
                                             dummy_namespace.id)