Trees | Indices | Help |
|
---|
|
Contains the class _PropertyCompare, and several functions to perform test workups.
The most commonly used workup is compare_ct_property
Copyright: Schrodinger, LLC. All rights reserved.
|
|||
WorkupFailure | |||
_PropertyCompare Compare properties between a ct and a csv file generated from a ct via proplister. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
logger = log.get_logger('test_backend')
|
|||
__package__ =
|
|
Counts the number of lines in one or more files matching a single
shell expansion expression, usage: lines_in_file(file, num_lines_target, tolerance) |
Checks if files either all exist (default) or all don't exist.
|
Checks to see if all the files exist. Inputs are assumed to be filenames or shell expansion expressions representing filenames. usage: files_exist(file1, file2, ...) |
Alias for backwards compatibility. |
Checks to see if all the files exist. Input is assumed to be a file containing list of filenames or shell expansion expressions representing filenames - one filename per line. usage: many_files_exist(input_file) |
Checks to see if all the files don't exist. Input is assumed to be a list of filenames or shell expansion expressions representing filenames. usage: files_dont_exist(file1, file2, ...) |
Counts the number of cts in a file and checks that its within +/- range of the expected number of cts. usage: cts_in_file(file, num_cts_target, tolerance) |
Compare property in the first ct to a user-provided value. usage: compare_ct_property(filename, inp_property, inp_property_target, [tolerance]) Tolerance only works for properties that start with i or r (integers or floats). |
Search file for a string. Expected arguments are [file_expression,
string, [occurrences]]. If string is found in every file that matches the
shell glob expression usage: parse_log_file(file_expr, pattern, [occurrences]) |
Please use compare_ct_properties if possible. Compare a subset of ct level properties for cts in a file against standard values using strict evaluation. All properties must match within the provided per-value range in order for the comparison to be a success. Also checks that all expected cts (rows) in standard file have a corresponding match in the structure file. The structure file can have additional cts though. Uses PropertyCompare file format: https://wiki.schrodinger.com/QA/PropertyCompare Use the evaluate_ct_properties workup instead to prevent a failure from being triggered when a ct in the standard file is not found in the structure file. |
Please use compare_ct_properties if possible. Compare a subset of ct level properties for cts in a file against standard values. All properties must match within the provided per-value range in order for the comparison to be a success. Uses PropertyCompare file format: https://wiki.schrodinger.com/QA/PropertyCompare Note that a failure will NOT be triggered if a ct (row) in the standard file is not located in the structure file. To ensure that all cts in the standard match an entry in the comparison file, please use the workup strict_evaluate_ct_properties. |
Look for the existence of all expected cts. The structure file can have additional cts. Uses PropertyCompare standard file format: https://wiki.schrodinger.com/QA/PropertyCompare usage: check_for_all_expected_cts(std_file, str_file) |
Find the diff of two files and compare the output. Compare script takes the following arguments. usage: compare_files(filea, fileb, -option1, -option2) Options: <cutoff> Absolute or relative diff allowed btw numerical fields. Must be a positive number. The default is 0.00001. -r|-rel Compare relative differences btw differing fields. This is the default. -a|-abs Compare absolute differences btw differing fields. The default is to compare relative differences. -m|-mag <mag> Minimum magnitude to use for assessing relative diffs. Must be positive. The default value is 1.0. -z Compare magnitudes only (ignore sign differences). -s|-skip <file> File containing regexps for lines to ignore. By default the file './skip_lines' is used. |
Extracts a file from a tar file. The files file1, file2, etc. will be extracted from tarName. Extract all the files in tarName, if no filename is specified. usage: untar(tar_name, file1, file2, ...) |
Extracts a file from a zip file. The files file1, file2, etc. will be extracted from zipName. Extract all the files in zipName,if no file name is specified usage: unzip(zip_name, file1, file2, ...) |
Expect the job to have a "bad" exit status. If this workup is included, the test will FAIL if it has a successful exit status and SUCCEED if it has a bad exit status. This is opposite of the usual behavior. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:32:57 2017 | http://epydoc.sourceforge.net |