Commit f2e62c09 authored by Rafael Monnerat's avatar Rafael Monnerat

Enable support for expected failures

It is required to use TestCase from backportUnittest in other to report
expected failures in an appropriated way.
parent a22e6eb1
......@@ -33,6 +33,7 @@ from xmlrpclib import ServerProxy, Fault
from magic import Magic
from types import DictType
from base64 import encodestring, decodestring
from cloudooo.tests import backportUnittest
config = ConfigParser()
......@@ -43,7 +44,7 @@ def make_suite(test_case):
return suite
class TestCase(unittest.TestCase):
class TestCase(backportUnittest.TestCase):
def setUp(self):
server_cloudooo_conf = environ.get("server_cloudooo_conf", None)
......
......@@ -8,6 +8,7 @@ from subprocess import Popen
from ConfigParser import ConfigParser
from argparse import ArgumentParser
from os import chdir, path, environ, curdir, remove
from cloudooo.tests import backportUnittest
from glob import glob
import psutil
from signal import SIGQUIT
......@@ -75,7 +76,7 @@ def run():
DAEMON = getattr(module, 'DAEMON', False)
OPENOFFICE = getattr(module, 'OPENOFFICE', False)
TestRunner = unittest.TextTestRunner
TestRunner = backportUnittest.TextTestRunner
suite = unittest.TestSuite()
suite.addTest(module.test_suite())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment