Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Add scale out TCs with availability zone support"
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
contexts
/
test_dummy.py
diff --git
a/yardstick/tests/unit/benchmark/contexts/test_dummy.py
b/yardstick/tests/unit/benchmark/contexts/test_dummy.py
index
e393001
..
c4113be
100644
(file)
--- a/
yardstick/tests/unit/benchmark/contexts/test_dummy.py
+++ b/
yardstick/tests/unit/benchmark/contexts/test_dummy.py
@@
-9,6
+9,7
@@
import unittest
import unittest
+from yardstick.benchmark.contexts import base
from yardstick.benchmark.contexts import dummy
from yardstick.benchmark.contexts import dummy
@@
-20,7
+21,12
@@
class DummyContextTestCase(unittest.TestCase):
'task_id': '1234567890',
}
self.test_context = dummy.DummyContext()
'task_id': '1234567890',
}
self.test_context = dummy.DummyContext()
- self.addCleanup(self.test_context._delete_context)
+ self.addCleanup(self._delete_contexts)
+
+ @staticmethod
+ def _delete_contexts():
+ for context in base.Context.list:
+ context._delete_context()
def test___init__(self):
self.assertFalse(self.test_context._flags.no_setup)
def test___init__(self):
self.assertFalse(self.test_context._flags.no_setup)