]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Patch teardown in some test methods
authorZack Cerza <zack@redhat.com>
Mon, 22 Aug 2016 21:43:44 +0000 (15:43 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 23 Aug 2016 20:40:20 +0000 (14:40 -0600)
Specifically, test_setup_called() and test_begin_called()

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/test/task/__init__.py

index a2b804cf621246e140716083b816a19b7a4ad325..f03737e8cf1d9375b4c5cdf1cc3bd7e0f04d5e26 100644 (file)
@@ -146,6 +146,7 @@ class TestTask(object):
             setup=DEFAULT,
             begin=DEFAULT,
             end=DEFAULT,
+            teardown=DEFAULT,
         ):
             with self.klass(self.ctx, self.task_config) as task:
                 task.setup.assert_called_once_with()
@@ -156,6 +157,7 @@ class TestTask(object):
             setup=DEFAULT,
             begin=DEFAULT,
             end=DEFAULT,
+            teardown=DEFAULT,
         ):
             with self.klass(self.ctx, self.task_config) as task:
                 task.begin.assert_called_once_with()