~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/xunit/protocols/subunit.py

  • Committer: Marc Tardif
  • Date: 2011-07-25 17:11:24 UTC
  • Revision ID: marc.tardif@canonical.com-20110725171124-0gg693yorqv2sxbf
Added script for importing submissions from Launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
class SubunitResult:
18
18
 
19
 
    def __init__(self, test_run):
20
 
        self.test_run = test_run
 
19
    def __init__(self, test_run_factory, **kwargs):
 
20
        self.test_run = test_run_factory(**kwargs)
21
21
 
22
22
    def startTest(self, test):
23
23
        pass
43
43
 
44
44
class SubunitProtocol(ProtocolTestCase):
45
45
 
46
 
    def run(self, test_run):
47
 
        result = SubunitResult(test_run)
 
46
    def run(self, test_run_factory, **kwargs):
 
47
        result = SubunitResult(test_run_factory, **kwargs)
48
48
        super(SubunitProtocol, self).run(result)
49
49
 
50
50