test_install.py script

Simple script for testing various SfePy functionality, examples not covered by tests, and running the tests.

The script just runs the commands specified in its main() using the subprocess module, captures the output and compares one or more key words to the expected ones.

The output of failed commands is saved to ‘test_install.log’ file.

test_install.check_output(cmd)[source]

Run the specified command and capture its outputs.

Returns
outtuple

The (stdout, stderr) output tuple.

test_install.main()[source]
test_install.report(out, name, line, item, value, eps=None, return_item=False, match_numbers=False)[source]

Check that item at line of the output string out is equal to value. If not, print the output.

test_install.report2(out, name, items, return_item=False)[source]

Check that items are in the output string out. If not, print the output.

test_install.report_tests(out, return_item=False)[source]

Check that all tests in the output string out passed. If not, print the output.