web/test/unittest_formfields.py
branchstable
changeset 8519 e436688f75f4
parent 7879 9aae456abab5
child 8666 1dd655788ece
equal deleted inserted replaced
8518:153a7c9cdca9 8519:e436688f75f4
   145 
   145 
   146 
   146 
   147     def test_property_key_field(self):
   147     def test_property_key_field(self):
   148         from cubicweb.web.views.cwproperties import PropertyKeyField
   148         from cubicweb.web.views.cwproperties import PropertyKeyField
   149         req = self.request()
   149         req = self.request()
   150         field = PropertyKeyField()
   150         field = PropertyKeyField(name='test')
   151         e = self.vreg['etypes'].etype_class('CWProperty')(req)
   151         e = self.vreg['etypes'].etype_class('CWProperty')(req)
   152         renderer = self.vreg['formrenderers'].select('base', req)
   152         renderer = self.vreg['formrenderers'].select('base', req)
   153         form = EntityFieldsForm(req, entity=e)
   153         form = EntityFieldsForm(req, entity=e)
   154         form.formvalues = {}
   154         form.formvalues = {}
   155         field.render(form, renderer)
   155         field.render(form, renderer)