Sfoglia il codice sorgente

Remove intermediate containers in recreate test

Ben Firshman 11 anni fa
parent
commit
ea93c01dfb
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      tests/project_test.py

+ 4 - 0
tests/project_test.py

@@ -61,6 +61,10 @@ class ProjectTest(DockerClientTestCase):
         self.assertEqual(len(web.containers(stopped=True)), 1)
         self.assertEqual(len(db.containers(stopped=True)), 1)
 
+        # remove intermediate containers
+        for (service, container) in old:
+            container.remove()
+
     def test_start_stop_kill_remove(self):
         web = self.create_service('web')
         db = self.create_service('db')