Skip to content

Commit 310493b

Browse files
committed
Add temp test directory
1 parent d9abf83 commit 310493b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wpiformat/wpiformat/test/tasktest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import sys
77

8+
from .tempdir import *
89
from wpiformat.config import Config
910

1011

@@ -75,6 +76,10 @@ def run(self, output_type):
7576
"""
7677
assert len(self.inputs) == len(self.outputs)
7778

79+
# Create git repo to test each task
80+
with OpenTemporaryDirectory():
81+
subprocess.run(["git", "init", "-q"])
82+
7883
config_file = Config(os.path.abspath(os.getcwd()), ".styleguide")
7984

8085
for i in range(len(self.inputs)):

0 commit comments

Comments
 (0)