Skip to content

Commit 57916e1

Browse files
committed
Add temp test directory
1 parent dedf47f commit 57916e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: wpiformat/wpiformat/test/test_tasktest.py

+5
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

@@ -68,6 +69,10 @@ def run(self, output_type):
6869
"""
6970
assert len(self.inputs) == len(self.outputs)
7071

72+
# Create git repo to test each task
73+
with OpenTemporaryDirectory():
74+
subprocess.run(["git", "init", "-q"])
75+
7176
config_file = Config(os.path.abspath(os.getcwd()), ".styleguide")
7277

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

0 commit comments

Comments
 (0)