Skip to content

Commit

Permalink
Initialise test repo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Dec 8, 2014
1 parent eb39606 commit 41e7388
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import io
import shutil

from plumbum.cmd import git
from plumbum import local

from changes.config import CLI


Expand All @@ -28,6 +31,8 @@ def setup():
with open(context.requirements, 'w') as req_file:
req_file.write('pytest')

with local.cwd(local.cwd / module_name):
git('init', module_name)

def teardown():
if os.path.exists(context.tmp_file):
Expand Down

0 comments on commit 41e7388

Please sign in to comment.