Add integration test for existing install behaviour

This commit is contained in:
Anthony Sottile 2014-06-16 08:20:47 -07:00
parent 332e8b480b
commit 4b43fd8cdc
4 changed files with 60 additions and 1 deletions

View file

@ -22,7 +22,10 @@ def _get_default_directory():
`Store.get_default_directory` can be mocked in tests and
`_get_default_directory` can be tested.
"""
return os.path.join(os.environ['HOME'], '.pre-commit')
return os.environ.get(
'PRE_COMMIT_HOME',
os.path.join(os.environ['HOME'], '.pre-commit'),
)
class Store(object):