(self, **kwargs)
return self.create_or_update_case(CaseStructure(case_id=case_id, attrs=kwargs))[0]
Shortcut to create a simple case without needing to make a structure for it.
Shortcut to create a simple case without needing to make a structure for it.
Shortcut to create a simple case without needing to make a structure for it .
def create_case(self, **kwargs):
        """
        Shortcut to create a simple case without needing to make a structure for it.
        """
        kwargs['create'] = True
        case_id = uuid.uuid4().hex
        return self.create_or_update_case(CaseStructure(case_id=case_id, attrs=kwargs))[0]
def create_case ( self , * * kwargs ) : kwargs [ 'create' ] = True case_id = uuid . uuid4 ( ) . hex return self . create_or_update_case ( CaseStructure ( case_id = case_id , attrs = kwargs ) ) [ 0 ]