hookmeup

A Git hook to automate your Pipenv and Django workflow
git clone git://git.danielmoch.com/hookmeup.git
Log | Files | Refs | README | LICENSE

commit fedea7f5f5034c8e0c98e8c672ff6aca85143f4f
parent 5944b7460330c7eebab6a3ec6b5b52b3355999ca
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed, 29 Aug 2018 22:05:11 -0400

Fix last failing Windows test

Diffstat:
Mtests/test_hookmeup.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/test_hookmeup.py b/tests/test_hookmeup.py @@ -34,7 +34,9 @@ def test_install(mock_install, mocker): mock_file().write.assert_called_once_with( '#!/bin/sh\nhookmeup post-checkout "$@"\n' ) - os.path.exists.assert_called_once_with('.git/hooks/post-checkout') + os.path.exists.assert_called_once_with( + os.path.sep.join(['.git', 'hooks', 'post-checkout']) + ) def test_install_existing_hook(mock_install, mocker): """Test install function when post-checkout already exists""" @@ -47,8 +49,8 @@ def test_install_existing_hook(mock_install, mocker): hookmeup.hookmeup.install({}) assert mock_file.call_count == 2 os.path.exists.assert_called_once_with( - os.path.sep.join(['.git', 'hooks', 'post-checkout']) - ) + os.path.sep.join(['.git', 'hooks', 'post-checkout']) + ) def test_install_bad_arg(mocker): """Test install function when arg inappropriately provided"""