Skip to content

Commit

Permalink
fix: Making integration tests work on Windows (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanathkr committed Jun 18, 2018
1 parent f88bbd3 commit dd3c556
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ instance/
docs/_build/

# PyBuilder
target/
/target/

# Jupyter Notebook
.ipynb_checkpoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ def setUp(self):

self.template_path = os.path.join(self.test_data_path, "invoke", "runtimes", "template.yaml")

self.events_file = tempfile.NamedTemporaryFile()
self.events_file.write('"yolo"') # Just empty event
self.events_file.flush()
# Don't delete on close. Need the file to be present for tests to run.
events_file = tempfile.NamedTemporaryFile(delete=False)
events_file.write(b'"yolo"') # Just empty event
events_file.flush()
events_file.close()

self.events_file_path = self.events_file.name
self.events_file_path = events_file.name

def tearDown(self):
self.events_file.close()
os.remove(self.events_file_path)

@parameterized.expand([
param("Go1xFunction"),
Expand Down
Binary file not shown.

0 comments on commit dd3c556

Please sign in to comment.