Beispiel #1
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch", ["+e"])
     self.options = Options(["FileRunner", "+v", "+e", "foo", "bar"],
                            BatchBase.parmDict)
     self.fixture = Fixture()
     self.fixture.fixtureLoader = MockFixtureLoader()
Beispiel #2
0
    def tearDown(self):
#        fsi.conMsg.logToStderr(self.id())
        fsi.conMsg = self.saveMsg
        FG.fsa = FileSystemAdapter()
        fsi.netIn = fsi.netOut = fsi.net = fsi.FitNesseNetworkInterface()
        sys.path[:] = self.savePath
        setupFitGlobalForTests("FitNesseBatch")
Beispiel #3
0
 def tearDown(self):
     setupFitGlobalForTests("Batch")
     if MockCamelFixture._typeDict.get(".useToMapLabel"):
         del MockCamelFixture._typeDict[".useToMapLabel"]
     if MockCamelFixtureIndirect._typeDict.get(".useToMapLabel"):
         del MockCamelFixtureIndirect._typeDict[".useToMapLabel"]
     if MockCamelTargetClass._typeDict.get(".useToMapLabel"):
         del MockCamelTargetClass._typeDict[".useToMapLabel"]
Beispiel #4
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseOnline")
     self.savePath = copy.copy(sys.path)
     self.fits = fsi.ServerBase()
     self.options = Options(["fubar"], SiteOptions.FitServer.parmDict)
     self.saveNet = fsi.net
     fsi.netIn = fsi.netOut = fsi.net = ioMock()
     self.saveMsg = fsi.conMsg
     fsi.conMsg = fsi.TestMsgWriter()
Beispiel #5
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseBatch")
     self.savePath = copy.copy(sys.path)
     self.saveMsg = fsi.conMsg
     fsi.conMsg = fsi.TestMsgWriter()
     FG.fsa = VirtualFileSystem()
     FG.fsa._addDirectories("tests/testout")
     self.trun = fsi.TestRunner()
     fsi.netIn = fsi.netOut = fsi.net = ioMock()
Beispiel #6
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseOnline")
     if isinstance(fsi.conMsg, types.StringTypes):
         em("conMsg corrupt. %s" % fsi.conMsg)
     self.savePythonPath = copy.copy(sys.path)
     self.saveNet = fsi.net
     fsi.netIn = fsi.netOut = fsi.net = ioMock()
     self.saveMsg = fsi.conMsg
     fsi.conMsg = fsi.TestMsgWriter()
     self.fits = fsi.FitServer()
Beispiel #7
0
 def tearDown(self):
     sys.path[:] = self.savePythonPath
     fsi.conMsg.logToStdout(self.id())
     fsi.conMsg = self.saveMsg
     fsi.netIn = fsi.netOut = fsi.net = self.saveNet
     setupFitGlobalForTests("FitNesseOnline")
Beispiel #8
0
 def tearDown(self):
     fsi.conMsg.logToStdout(self.id())
     fsi.conMsg = self.saveMsg
     setupFitGlobalForTests("FitNesseBatch")
Beispiel #9
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseBatch")
     self.saveMsg = fsi.conMsg
     fsi.conMsg = fsi.TestMsgWriter()
Beispiel #10
0
 def tearDown(self):
     setupFitGlobalForTests("Batch")
Beispiel #11
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseOnline")
     SetupExitMock1._typeDict = {}
Beispiel #12
0
 def tearDown(self):
     setupFitGlobalForTests("Batch")
Beispiel #13
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch")
     CellHandler._testInit()
Beispiel #14
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch")
     self.options = Options(["FileRunner", "+v", "foo", "bar"],
                            BatchBase.parmDict)
Beispiel #15
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch")
     CellHandler._testInit()
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseBatch")
     self.saveMsg = fsi.conMsg
     fsi.conMsg = fsi.TestMsgWriter()
 def tearDown(self):
     sys.path[:] = self.savePath
     fsi.conMsg.logToStdout(self.id())
     fsi.conMsg = self.saveMsg
     fsi.netIn = fsi.netOut = fsi.net = self.saveNet
     setupFitGlobalForTests("FitNesseOnline")
Beispiel #18
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch")
     self.obj = Variations.VariationsBase()
Beispiel #19
0
 def tearDown(self):
     setupFitGlobalForTests("Batch")
     CellHandler._testInit()
Beispiel #20
0
 def setUp(self):
     setupFitGlobalForTests("Batch")
Beispiel #21
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("FitNesseOnline")
Beispiel #22
0
 def tearDown(self):
     setupFitGlobalForTests("Batch")
     CellHandler._testInit()
Beispiel #23
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     setupFitGlobalForTests("Batch")
     self.obj = Variations.VariationsBase()