We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26e859 commit 6081551Copy full SHA for 6081551
1 file changed
api/tests/formation.py
@@ -136,6 +136,10 @@ def test_formation_actions(self):
136
if not os.path.exists(settings.DEIS_LOG_DIR):
137
os.mkdir(settings.DEIS_LOG_DIR)
138
path = os.path.join(settings.DEIS_LOG_DIR, formation_id + '.log')
139
+ try:
140
+ os.remove(path) # cleanup any old log files
141
+ except:
142
+ pass
143
url = '/api/formations/{formation_id}/logs'.format(**locals())
144
response = self.client.post(url)
145
self.assertEqual(response.status_code, 404)
0 commit comments