We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f62a0cb commit e54f9e2Copy full SHA for e54f9e2
2 files changed
api/tasks.py
@@ -91,6 +91,7 @@ def build_app(app):
91
def destroy_app(app):
92
CM.purge_app(app.flat())
93
app.delete()
94
+ app.formation.publish()
95
96
97
@task
api/tests/app.py
@@ -95,6 +95,11 @@ def test_app_cm(self):
response = self.client.delete(url)
self.assertEqual(response.status_code, 204)
self.assertFalse(os.path.exists(path))
98
+ formation_id = 'autotest'
99
+ path = os.path.join(settings.TEMPDIR, 'formation-{}'.format(formation_id))
100
+ with open(path) as f:
101
+ data = json.loads(f.read())
102
+ self.assertNotIn(app_id, data['apps'])
103
104
def test_app_override_id(self):
105
body = {'formation': 'autotest', 'id': 'myid'}
0 commit comments