Exemplo n.º 1
0
 def test_git_hook():
     from pylama.hook import git_hook
     try:
         git_hook()
         raise AssertionError('Test failed.')
     except SystemExit:
         pass
Exemplo n.º 2
0
 def test_git_hook():
     from pylama.hook import git_hook
     try:
         git_hook()
         raise AssertionError('Test failed.')
     except SystemExit:
         pass
Exemplo n.º 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
Exemplo n.º 4
0
#!/usr/bin/env python
import sys

from pylama.hook import (
    git_hook, )

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

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