From 0e54bda176cd2cf51177bfe3e85c5ff692220f82 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 22 Aug 2016 15:43:44 -0600 Subject: [PATCH] Patch teardown in some test methods Specifically, test_setup_called() and test_begin_called() Signed-off-by: Zack Cerza --- teuthology/test/task/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/test/task/__init__.py b/teuthology/test/task/__init__.py index a2b804cf6..f03737e8c 100644 --- a/teuthology/test/task/__init__.py +++ b/teuthology/test/task/__init__.py @@ -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() -- 2.47.3