CYCAMORE
|
Functions | |
check_cmd (args, cwd, holdsrtn) | |
cyclus_has_coin () | |
exit_times (agent_id, exit_table) | |
find_ids (data, data_table, id_table) | |
hasher (x) | |
idx (h) | |
run_cyclus (cyclus, cwd, in_path, out_path) | |
table_exist (db, tables) | |
Variables | |
CYCLUS_HAS_COIN = None | |
np | sha1array = lambda x.array(idx(hasher(x)), np.uint32) |
tuple | str_types = (bytes, str) |
A set of tools for use in integration tests.
helper.check_cmd | ( | args, | |
cwd, | |||
holdsrtn ) |
Runs a command in a subprocess and verifies that it executed properly.
Definition at line 72 of file helper.py.
Referenced by run_cyclus().
helper.exit_times | ( | agent_id, | |
exit_table ) |
helper.find_ids | ( | data, | |
data_table, | |||
id_table ) |
Finds ids of the specified data located in the specified data_table, and extracts the corresponding id from the specified id_table.
Definition at line 34 of file helper.py.
References sha1array.
Referenced by test_regression.TestRegression.find_ids().
helper.run_cyclus | ( | cyclus, | |
cwd, | |||
in_path, | |||
out_path ) |
Runs cyclus with various inputs and creates output databases
Definition at line 63 of file helper.py.
References check_cmd().
helper.table_exist | ( | db, | |
tables ) |
Definition at line 27 of file helper.py.
Referenced by find_ids().