Merge "Move all tests to use base.BaseTest"
This commit is contained in:
commit
42831af10f
@ -23,6 +23,7 @@ from email.parser import Parser
|
||||
|
||||
from mistral.actions import std_actions as std
|
||||
from mistral import exceptions as exc
|
||||
from mistral.tests import base
|
||||
|
||||
"""
|
||||
To try against a real SNMP server:
|
||||
@ -47,7 +48,7 @@ LOCAL_SMTPD = False
|
||||
REMOTE_SMTP = False
|
||||
|
||||
|
||||
class SendEmailActionTest(unittest2.TestCase):
|
||||
class SendEmailActionTest(base.BaseTest):
|
||||
|
||||
def setUp(self):
|
||||
self.params = {
|
||||
|
@ -14,10 +14,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import unittest2
|
||||
|
||||
from mistral import expressions as expr
|
||||
|
||||
from mistral.tests import base
|
||||
|
||||
DATA = {
|
||||
"server": {
|
||||
@ -43,7 +41,7 @@ SERVERS = {
|
||||
}
|
||||
|
||||
|
||||
class YaqlEvaluatorTest(unittest2.TestCase):
|
||||
class YaqlEvaluatorTest(base.BaseTest):
|
||||
def setUp(self):
|
||||
super(YaqlEvaluatorTest, self).setUp()
|
||||
self._evaluator = expr.YAQLEvaluator()
|
||||
|
@ -22,12 +22,11 @@ SAMPLE_TASK_SPEC = {
|
||||
'on-error': ["task1", "task2"]
|
||||
}
|
||||
|
||||
import unittest2
|
||||
|
||||
from mistral.tests import base
|
||||
from mistral.workbook import tasks
|
||||
|
||||
|
||||
class GetOnStateTest(unittest2.TestCase):
|
||||
class GetOnStateTest(base.BaseTest):
|
||||
def setUp(self):
|
||||
self.task = tasks.TaskSpec(SAMPLE_TASK_SPEC)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user