from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=[ '1% quantile value of', '1dpamzt violates planning limit', '50% quantile value of', '99% quantile value of', '1dpamzt violates zero-feps limit', 'validation warning\(s\) in output', 'AstropyDeprecationWarning: out/states.dat already exists.', 'AstropyDeprecationWarning: headout/states.dat already exists.' ])
from testr.packages import check_files # Compiler warnings can be skipped: # http://stackoverflow.com/questions/25789055/ # cython-numpy-warning-about-npy-no-deprecated-api-when-using-memoryview # Circa Oct 2016, TLA tried upgrading cython (0.24) but this didn't help. check_files( 'test_*.log', ['warning', 'error'], allows=['Using deprecated NumPy', '_multiarray_api.h', '__ufunc_api.h'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=['1% quantile value of', '50% quantile value of', '99% quantile value of', 'validation warning\(s\) in output', 'AstropyDeprecationWarning: out/states.dat already exists.', 'AstropyDeprecationWarning: headout/states.dat already exists.', 'ErfaWarning: ERFA function "dtf2d" yielded 2 of "dubious year', 'ErfaWarning: ERFA function "utctai" yielded 2 of "dubious year'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=[ r'/kadi/settings.py:\d\d: UserWarning:', r'warnings.warn\(message\)', 'Unable to change file mode', 'unable to get COBSRQID', 'alter_validators_add_error_messages', 'dropping state because of insufficent event time pad', 'negative event duration', 'Coarse OBC' ])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=[r'test_[a-z]+_error'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=[ 'WARNING.+because colnames', 'WARNING.+made new file', 'WARNING.+Unexpected null file' ])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=['using `oa_ndim == 0` when `op_axes` is NULL is deprecated.', 'mica.archive.aca_dark.dark_model is deprecated.'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=['test_inject_errors', 'test_inject_array_errors'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=['test_warnings.*PASSED', 'dark_date_warning.*PASSED'])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=[ 'did not parse as fits unit', 'specified but multiple tables', 'has 2 aspect intervals', 'NaturalNameWarning:' ])
from testr.packages import check_files check_files('test_*.log', ['warning', 'error'], allows=['mxDateTime'])