示例#1
0
 def setUp(self):
     super(ReprocessorTest, self).setUp()
     self.pipeline.conn.close()
     self.pipeline = Reprocessor(custom_cm=self.cm, database='test')
示例#2
0
 def setUp(self):
     super(ReprocessorTest, self).setUp()
     self.pipeline.conn.close()
     self.pipeline = Reprocessor(custom_cm=self.cm, database='test')
示例#3
0
class ReprocessorTest(PipelineGeneralTest):
    """
    """
    def setUp(self):
        super(ReprocessorTest, self).setUp()
        self.pipeline.conn.close()
        self.pipeline = Reprocessor(custom_cm=self.cm, database='test')

    def test_simple(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.reprocess_image(2)
        self.pipeline.reprocess_image(2)

    def test_full(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.full_reprocess_image(2, GSMParset('tests/image2.parset'))
示例#4
0
class ReprocessorTest(PipelineGeneralTest):
    """
    """
    def setUp(self):
        super(ReprocessorTest, self).setUp()
        self.pipeline.conn.close()
        self.pipeline = Reprocessor(custom_cm=self.cm, database='test')

    def test_simple(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.reprocess_image(2)
        self.pipeline.reprocess_image(2)

    def test_full(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.full_reprocess_image(2, GSMParset('tests/image2.parset'))