Skip to content

Commit

Permalink
Make sure TEST_DIR exists in test_random
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoRoth committed Apr 18, 2018
1 parent fa35b58 commit 00b8314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oggm/tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ def test_shapefile_output(self):
def test_random(self):

# Fake Reset (all these tests are horribly coded)
if not os.path.exists(TEST_DIR):
os.makedirs(TEST_DIR)
with open(CLI_LOGF, 'wb') as f:
pickle.dump('none', f)
gdirs = up_to_inversion()
Expand Down

0 comments on commit 00b8314

Please sign in to comment.