示例#1
0
    def setUp(self):
        ProcessorTestCase.setUp(self)
        with open('processor.cfg', 'w') as f:
            f.write("""[processor]
taskDatabase = "pymongo://localhost/test_lgTask"
pythonPath = [ "./tasks2" ]
""")
    def setUp(self):
        """Write our processor and processor2 cfgs
        """
        ProcessorTestCase.setUp(self)
        # We're now in the testProcessor cfg
        with open('processor.cfg', 'w') as f:
            f.write("""[processor]
{0}
taskDatabase = "pymongo://localhost/test_lgTask"
pythonPath = [ "./tasks2" ]
""".format(self.EXTRA_CONFIG))
        with open('../testProcessor2/processor.cfg', 'w') as f:
            f.write("""[processor]
{0}
taskDatabase = "pymongo://localhost/test_lgTask"
""".format(self.EXTRA_CONFIG))