Example #1
0
    def __init__(self, filename):
        BaseReporter.__init__(self)

        from cStringIO import StringIO
        self._sio = StringIO()
        from elementtree.SimpleXMLWriter import XMLWriter
        self.writer = XMLWriter(self._sio, "utf-8")
        self.filename = filename

        self.test_starts = {}
Example #2
0
    def __init__(self, filename):
        BaseReporter.__init__(self)

        from cStringIO import StringIO
        self._sio = StringIO()
        from elementtree.SimpleXMLWriter import XMLWriter
        self.writer = XMLWriter(self._sio, "utf-8")
        self.filename = filename

        self.test_starts = {}
Example #3
0
    def __init__(self):
        BaseReporter.__init__(self)

        from cStringIO import StringIO
        self._sio = StringIO()
        try:
            from elementtree.SimpleXMLWriter import XMLWriter
        except ImportError:
            from testoob.compatibility.SimpleXMLWriter import XMLWriter
        self.writer = XMLWriter(self._sio, "utf-8")

        self.test_starts = {}
Example #4
0
    def __init__(self, filename):
        BaseReporter.__init__(self)
        from reportlab.platypus import XPreformatted, Spacer
        self.filename = filename
        self.lst = []
        self.lst.append(
            XPreformatted(
                "<b><i><font size=20>Summary of test results</font></i></b>",
                self._normal_style()))
        self.lst.append(Spacer(0, 20))

        self.test_data = [("Name", "Result", "Info")]
Example #5
0
    def __init__(self):
        BaseReporter.__init__(self)

        from cStringIO import StringIO
        self._sio = StringIO()
        try:
            from elementtree.SimpleXMLWriter import XMLWriter
        except ImportError:
            from testoob.compatibility.SimpleXMLWriter import XMLWriter
        self.writer = XMLWriter(self._sio, "utf-8")

        self.test_starts = {}
Example #6
0
    def __init__(self, filename):
        BaseReporter.__init__(self)
        from reportlab.platypus import XPreformatted, Spacer

        self.filename = filename
        self.lst = []
        self.lst.append(
            XPreformatted("<b><i><font size=20>Summary of test results</font></i></b>", self._normal_style())
        )
        self.lst.append(Spacer(0, 20))

        self.test_data = [("Name", "Result", "Info")]
Example #7
0
    def __init__(self, stream, create_writers=StreamWriters):
        # TODO - why the hell do we save re?
        import re
        self.re = re
        BaseReporter.__init__(self)
        self.writers = create_writers(stream)

        from testoob.reporting import options
        self.showAll = options.verbosity > 1
        self.dots = options.verbosity == 1
        self.vassert = options.verbosity == 3
        self.immediate = options.immediate
        self.descriptions = options.descriptions
        self.time_each_test = options.time_each_test
Example #8
0
    def __init__(self, stream, create_writers = StreamWriters):
        # TODO - why the hell do we save re?
        import re
        self.re = re
        BaseReporter.__init__(self)
        self.writers = create_writers(stream)

        from testoob.reporting import options
        self.showAll = options.verbosity > 1
        self.dots = options.verbosity == 1
        self.vassert = options.verbosity == 3
        self.immediate = options.immediate
        self.descriptions = options.descriptions
        self.time_each_test = options.time_each_test
Example #9
0
    def __init__(self, stream):
        BaseReporter.__init__(self)

        self.stream = stream

        self.success_count = 0
        self.failure_count = 0
        self.error_count = 0

        # result is a list of result in 4 tuple
        # (
        #   result code (0: success; 1: fail; 2: error),
        #   TestCase object,
        #   Test output (byte string),
        #   stack trace,
        # )
        self.result = []
Example #10
0
    def __init__(self, stream):
        BaseReporter.__init__(self)

        self.stream = stream

        self.success_count = 0
        self.failure_count = 0
        self.error_count = 0

        # result is a list of result in 4 tuple
        # (
        #   result code (0: success; 1: fail; 2: error),
        #   TestCase object,
        #   Test output (byte string),
        #   stack trace,
        # )
        self.result = []