Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 14, 2024
1 parent 4928373 commit 99b9676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/commands/install_uninstall_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ 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
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
Expand All @@ -122,7 +122,7 @@ 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
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
Expand Down

0 comments on commit 99b9676

Please sign in to comment.