Skip to content

Commit 41e7388

Browse files
committed
Initialise test repo
1 parent eb39606 commit 41e7388

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import io
33
import shutil
44

5+
from plumbum.cmd import git
6+
from plumbum import local
7+
58
from changes.config import CLI
69

710

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

34+
with local.cwd(local.cwd / module_name):
35+
git('init', module_name)
3136

3237
def teardown():
3338
if os.path.exists(context.tmp_file):

0 commit comments

Comments
 (0)