sfepy.scripts.test_install module¶
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.
- sfepy.scripts.test_install.check_output(cmd)[source]¶
Run the specified command and capture its outputs.
- Returns:
- outtuple
The (stdout, stderr) output tuple.
- sfepy.scripts.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.