Switch to unified view

a/AlluraTesting/alluratest/test_syntax.py b/AlluraTesting/alluratest/test_syntax.py
...
...
20
    skips = [
20
    skips = [
21
        'imported but unused',
21
        'imported but unused',
22
        'redefinition of unused',
22
        'redefinition of unused',
23
        'assigned to but never used',
23
        'assigned to but never used',
24
    ]
24
    ]
25
    if run(find_py + " | grep -v '/migrations/' | xargs pyflakes | grep -v '" + "' | grep -v '".join(skips) + "'") != 1:
25
    cmd = find_py + " | grep -v '/migrations/' | xargs pyflakes"
26
    print 'Not skipping anything via grep:'
27
    print cmd
28
    print
29
    run(cmd)
30
31
    print
32
    print 'Skipping some stuff via grep:'
33
    cmd += " | grep -v '" + "' | grep -v '".join(skips) + "'"
34
    print cmd
35
    print
36
37
    retval = run(cmd)
38
    if retval != 1:
26
        raise Exception('pyflakes failure')
39
        raise Exception('pyflakes failure, returned %s' % retval)
27
40
28
def test_no_now():
41
def test_no_now():
29
    if run(find_py + " | xargs grep '\.now(' ") not in [1,123]:
42
    if run(find_py + " | xargs grep '\.now(' ") not in [1,123]:
30
        raise Exception("These should use .utcnow()")
43
        raise Exception("These should use .utcnow()")
31
    if run(find_py + " | xargs grep '\.fromtimestamp(' ") not in [1,123]:
44
    if run(find_py + " | xargs grep '\.fromtimestamp(' ") not in [1,123]: