parameters: ()
docstring: Set up Sauce tunnel before running functional tests targeted at localhost.
docstring_summary: Set up Sauce tunnel before running functional tests targeted at localhost.
docstring_tokens: Set up Sauce tunnel before running functional tests targeted at localhost .
function: def sauce_tunnel():
      """
          Set up Sauce tunnel before running functional tests targeted at localhost.
      """
      if subprocess.call(['which','sc']) == 1: # error return code -- program not found
          sys.exit("Please check that the `sc` program is installed and in your path. To install: https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy")
      local(f"sc -u {settings.SAUCE_USERNAME} -k {settings.SAUCE_ACCESS_KEY}")
function_tokens: def sauce_tunnel ( ) : if subprocess . call ( [ 'which' , 'sc' ] ) == 1 : # error return code -- program not found sys . exit ( "Please check that the `sc` program is installed and in your path. To install: https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy" ) local ( f"sc -u {settings.SAUCE_USERNAME} -k {settings.SAUCE_ACCESS_KEY}" )