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

from pylama.hook import (
    git_hook, )

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

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