run_WE2E_tests module

check_task_get_extrn_bcs(cfg: dict, mach: dict, dflt: dict, ics_or_lbcs: str = '') dict

Checks and updates various settings in the task_get_extrn_ics or task_get_extrn_lbcs section of the test’s configuration YAML file

Parameters:
  • cfg (dict) – Contents loaded from test configuration file

  • mach (dict) – Contents loaded from machine settings file

  • dflt (dict) – Contents loaded from default configuration file (config_defaults.yaml)

  • ics_or_lbcs (str) – Perform checks for either the ICs task or the LBCs task. Valid values: "ics" | "lbcs"

Returns:

cfg_bcs – Updated dictionary for task_get_extrn_[ics|lbcs] section of test configuration file

check_test(test: str) str

Checks that a string corresponds to a valid test name

Parameters:

test (str) – Potential test name

Returns:

config – Name of the test configuration file (empty string if no test file is found)

check_tests(tests: list) list

Checks that all tests in a provided list of tests are valid

Parameters:

tests (list) – List of potentially valid test names

Returns:

tests_to_run – List of configuration files corresponding to test names

run_we2e_tests(homedir, args) None

Runs the Workflow End-to-End (WE2E) tests selected by the user

Parameters:
  • homedir (str) – The full path to the top-level application directory

  • args (argparse.Namespace) – Command-line arguments

Returns:

None

setup_logging(logfile: str = 'log.run_WE2E_tests', debug: bool = False) None

Sets up logging, prints high-priority (INFO and higher) messages to screen, and prints all messages with detailed timing and routine info to the specified text file.

Parameters:
  • logfile (str) – Name of the test logging file (default: log.run_WE2E_tests)

  • debug (bool) – Set to True for more detailed output/information

Returns:

None