Move empty_git_dir out of pytest fixtures.

This commit is contained in:
Anthony Sottile 2014-06-15 15:22:29 -07:00
parent 7b1230df27
commit 047a933554
10 changed files with 159 additions and 99 deletions

14
testing/fixtures.py Normal file
View file

@ -0,0 +1,14 @@
from __future__ import absolute_import
from __future__ import unicode_literals
from plumbum import local
git = local['git']
def git_dir(tmpdir_factory):
path = tmpdir_factory.get()
with local.cwd(path):
git('init')
return path