Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r4521c70c724ec4c96276631f2d2c22bc9a512f28 -re074ab4641bebc4796543ddaeeb7afae5411e77d --- shared/scripts/configuration/utility.py (.../utility.py) (revision 4521c70c724ec4c96276631f2d2c22bc9a512f28) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision e074ab4641bebc4796543ddaeeb7afae5411e77d) @@ -39,7 +39,6 @@ """ test.compare(config.COLOR_CODES[color_name],(act_val.color[name])) - def check_if_object_is_within_the_container(obj=None, container=None): """ check if an object is inside a container @@ -87,8 +86,7 @@ squish.mouseWheel(ScreenObj, screenWidth//2, screenHeight//2, 0, -50, squish.Qt.NoModifier) - raise LookupError("value object is not in view to the user after " + \ - "trying 100 times") + raise LookupError("value object is not in view to the user after trying 100 times") def pressure_pop_up_text_obj(text): @@ -182,7 +180,6 @@ names.o_alarm_message["text"] = msg return names.o_alarm_message - def rejection_msg(text): names.rejection_msg["text"] = text return names.rejection_msg @@ -302,4 +299,16 @@ raise LookupError("value object is not in view to the user after " + \ "trying 100 times") + +def expected_heparin_value(val): + names.o_heparin_value["text"] = val + return names.o_heparin_value +def msg(string: str): + """ + added ### at the right side of the string to make sure that it is a message. + @param string: (str) the string to add trailing ### to + @return: (str) padded string + """ + pad_str = "###"+string + return pad_str