File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -691,7 +691,7 @@ def get_raw(self):
691691 def get_assertion (self , assertion_name ):
692692 """
693693 Gets a :class:`dataikuapi.dss.ml.DSSMLAssertionParams` representing the params of the assertion with the
694- provided name (or None)
694+ provided name (or None if no assertion has that name )
695695 :param str assertion_name: Name of the assertion
696696 :rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionParams` or None
697697 """
@@ -721,7 +721,7 @@ def delete_assertion(self, assertion_name):
721721 if assertion_dict ["name" ] == assertion_name :
722722 del self ._internal_dict ["assertions" ][idx ]
723723 return
724- raise ValueError ('No assertion name: {} was found ' .format (assertion_name ))
724+ raise ValueError ('No assertion found with name: {}' .format (assertion_name ))
725725
726726
727727class DSSMLAssertionParams (object ):
@@ -792,7 +792,7 @@ def condition(self):
792792 @condition .setter
793793 def condition (self , condition ):
794794 if not isinstance (condition , DSSMLAssertionCondition ):
795- raise ValueError ('Condition should be of type : {} not {}' .format (DSSMLAssertionCondition . __name__ , type (condition )))
795+ raise ValueError ('Wrong type for assertion condition : {}.format (type (condition )))
796796 self ._internal_dict ["assertionCondition" ] = condition ._internal_dict
797797
798798
You can’t perform that action at this time.
0 commit comments