Beispiel #1
0
 def test_git_hook():
     from pylama.hook import git_hook
     try:
         git_hook()
         raise AssertionError('Test failed.')
     except SystemExit:
         pass
Beispiel #2
0
 def test_git_hook():
     from pylama.hook import git_hook
     try:
         git_hook()
         raise AssertionError('Test failed.')
     except SystemExit:
         pass
Beispiel #3
0
def test_git_hook():
    from pylama.hook import git_hook

    try:
        assert not git_hook(False)
    except SystemExit as exc:
        assert exc.code == 0
Beispiel #4
0
#!/usr/bin/env python
import sys

from pylama.hook import (
    git_hook, )

if __name__ == '__main__':
    sys.exit(git_hook())
Beispiel #5
0
def test_git_hook():
    with pytest.raises(SystemExit):
        git_hook()
Beispiel #6
0
def test_git_hook():
    assert not git_hook(False)
#!/usr/bin/env python
import sys
from pylama.hook import git_hook

if __name__ == '__main__':
    sys.exit(git_hook())
Beispiel #8
0
def test_git_hook():
    assert not git_hook()
Beispiel #9
0
def test_git_hook():
    with pytest.raises(SystemExit):
        git_hook()