def METHOD_NAME(self):
    "Testing factory module that generates fields"
    # All valid field types.
    field_types = factory.get_field_types()
    for display_type in field_types:
        # Test that each field type can be rendered.
        json_data = dict(display=display_type)
        field = factory.dynamic_field(json_data)
        if not field:
            message = f"field generator for display={display_type} failed"
            if display_type == const.SQL:
                return
            self.assertFalse(message)