def test_config_resources(): from deform_bootstrap import add_resources_to_registry add_resources_to_registry() from deform.widget import default_resource_registry assert default_resource_registry((("chosen",None),)) is not None assert default_resource_registry((("bootstrap", None),)) is not None
def resources(self): return default_resource_registry( sum((f.get_widget_requirements() for f in self.forms.values()), []) )
def test_config_resources(): from deform_bootstrap import add_resources_to_registry add_resources_to_registry() from deform.widget import default_resource_registry assert default_resource_registry((("chosen", None), )) is not None assert default_resource_registry((("bootstrap", None), )) is not None