Fix too long lines

This commit is contained in:
Simon Segerblom Rex 2024-03-14 14:30:14 +01:00
parent 779ca90243
commit 49283737c5

View file

@ -111,7 +111,9 @@ def test_install_hooks_dead_symlink(in_git_dir, store):
def test_install_hooks_symlink_inside_git_repo(in_git_dir, store):
hooks_dir = in_git_dir.join('.git/hooks')
os.symlink(in_git_dir.join('hooks').ensure_dir().strpath, hooks_dir.strpath)
os.symlink(
in_git_dir.join('hooks').ensure_dir().strpath, hooks_dir.strpath
)
hook = hooks_dir.join('pre-commit')
assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) == 0
assert hook.exists()
@ -119,7 +121,9 @@ def test_install_hooks_symlink_inside_git_repo(in_git_dir, store):
def test_install_hooks_symlink_outisde_git_repo(in_git_dir, store):
hooks_dir = in_git_dir.join('.git/hooks')
os.symlink(in_git_dir.join('../hooks').ensure_dir().strpath, hooks_dir.strpath)
os.symlink(
in_git_dir.join('../hooks').ensure_dir().strpath, hooks_dir.strpath
)
hook = hooks_dir.join('pre-commit')
assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) != 0
assert not hook.exists()