O
==== github.com/progorker =_============ _ __ _ _ ___ __ _ ___ _ _| |_____ _ _ | '_ \ '_/ _ \/ _` / _ \ '_| / / -_) '_| | .__/_| \___/\__, \___/_| |_\_\___|_| =|_|===========|___/====================== API References of pyTestor ----- oOo ----- [procedure] api_testor_option ========================================== -------|__/------------------------- SYNTAX ------------------------------------ def pytestor.api_testor_option( p_token, p_suite_id, p_data, p_code, p_remove ): # return p_data -------|__/------------------------- USAGE ------------------------------------ $) import sys import os t_testor_dir = '../pyTestor' sys.path.append( os.path.abspath( t_testor_dir ) ) import pytestor username = 'mytestor' password = 'rzutomqahegpnyx' token = pytestor.api_testor_login( username, password ) print( "\nToken: " + token + "\n" ) suite_code = 'pyTestorTrial' suite_id = pytestor.api_testor_suite( token, suite_code ) print( "\nSuite ID: " + str(suite_id) + "\n" ) pytestor.api_testor_clean( token, suite_id ) data = '/bioogr/works/pyTestorTrial' option_code = 'src_dir' option_remove = False data = pytestor.api_testor_option( token, suite_id, data, option_code, option_remove ) data = None data = pytestor.api_testor_option( token, suite_id, data, option_code, option_remove ) print( f"\nOption ({option_code}): " + str(data) + "\n" ) ---------------------------- Token: 485b9ecbad20b9d0810a544818960dc3 Suite ID: 1 Option (src_dir): /bioogr/works/pyTestorTrial ----------------------------