Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -r294e8182b09559871bbb41e3792b14489b603047 -re74e550d3abff8c854a63ed41d5b01d78b110094 --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 294e8182b09559871bbb41e3792b14489b603047) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision e74e550d3abff8c854a63ed41d5b01d78b110094) @@ -1,34 +1,6 @@ -########################################################################### -# -# Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. -# -# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN -# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. -# -# @file utils.py - -# @author (last) LTTS -# @date (last) 15-Jan-2022 -# -############################################################################ -import csv -import glob -import names -import object import squish -import shutil import test -import re -import builtins - -from builtins import format -from builtins import str as pyStr -from builtins import int as pyInt -from leahi_dialin.ui import utils -from leahi_dialin.utils import * -from datetime import timezone -from datetime import datetime - + def get_object_from_names(names_dict, error_message = "Missing object", timeout_ms = 200): """ To get an object with try..except catching to prevent script errors when the object is not found on the GUI @@ -39,9 +11,4 @@ return squish.waitForObject(names_dict, timeout_ms) except LookupError: test.fail("ERROR : " + error_message) - return None - -def pressure_text_obj(text): - names.pressure_text_obj["text"] = text - return names.pressure_text_obj - \ No newline at end of file + return None \ No newline at end of file