Skip to content

Commit

Permalink
Add temp test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed May 6, 2024
1 parent dedf47f commit 57916e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wpiformat/wpiformat/test/test_tasktest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import sys

from .tempdir import *
from wpiformat.config import Config


Expand Down Expand Up @@ -68,6 +69,10 @@ def run(self, output_type):
"""
assert len(self.inputs) == len(self.outputs)

# Create git repo to test each task
with OpenTemporaryDirectory():
subprocess.run(["git", "init", "-q"])

config_file = Config(os.path.abspath(os.getcwd()), ".styleguide")

for i in range(len(self.inputs)):
Expand Down

0 comments on commit 57916e1

Please sign in to comment.