Пример #1
0
 def get_xml_editable_fields(self, model_data):
     system = get_test_system()
     system.render_template = Mock(
         return_value="<div>Test Template HTML</div>")
     model_data['category'] = 'test'
     return XmlDescriptor(runtime=system,
                          model_data=model_data).editable_metadata_fields
Пример #2
0
 def get_xml_editable_fields(self, model_data):
     system = test_system()
     system.render_template = Mock(
         return_value="<div>Test Template HTML</div>")
     return XmlDescriptor(system=system,
                          location=None,
                          model_data=model_data).editable_metadata_fields