Beispiel #1
0
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.'
            ])
Beispiel #2
0
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'])
Beispiel #3
0
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'])
Beispiel #4
0
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'
            ])
Beispiel #5
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
Beispiel #6
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'], allows=[r'test_[a-z]+_error'])
Beispiel #7
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
            allows=[
                'WARNING.+because colnames', 'WARNING.+made new file',
                'WARNING.+Unexpected null file'
            ])
Beispiel #8
0
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.'])
Beispiel #9
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
            allows=['test_inject_errors', 'test_inject_array_errors'])
Beispiel #10
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
            allows=['test_warnings.*PASSED', 'dark_date_warning.*PASSED'])
Beispiel #11
0
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:'
            ])
Beispiel #12
0
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'], allows=['mxDateTime'])