equal
deleted
inserted
replaced
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) |