Beispiel #1
0
    def test_rose_creation(self):
        for name, sample in samples.items():
            curve = create_database_curve_from_sample(sample)

            if not curve.can_calculate_curve:
                continue

            if not sample.get('save_file_for_tests'):
                continue

            rose = Rose(variation=0, curve=curve)
            rose.draw()
            os.rename(rose.filename, "test_output/rose_%s.pdf" % name)
            self.assertTrue(True)
Beispiel #2
0
    def test_rose_creation(self):
        for name, sample in samples.items():
            curve = create_database_curve_from_sample(sample)

            if not curve.can_calculate_curve:
                continue

            if not sample.get('save_file_for_tests'):
                continue

            rose = Rose(variation=0, curve=curve)
            rose.draw()
            os.rename(rose.filename, "test_output/rose_%s.pdf" % name)
            self.assertTrue(True)
Beispiel #3
0
    def test_table_creation(self):
        for name, sample in samples.items():
            curve = create_database_curve_from_sample(sample)

            if not curve.can_calculate_curve:
                continue

            if not sample.get('save_file_for_tests'):
                continue

            for heading_type in ('magnetic','compass'):
                table = Table(curve=curve, right=heading_type, url_pk=12345)
                table.draw()
                os.rename(table.filename, "test_output/table_%s_%s.pdf" % (name, heading_type))
                self.assertTrue(True)
Beispiel #4
0
    def test_table_creation(self):
        for name, sample in samples.items():
            curve = create_database_curve_from_sample(sample)

            if not curve.can_calculate_curve:
                continue

            if not sample.get('save_file_for_tests'):
                continue

            for heading_type in ('magnetic', 'compass'):
                table = Table(curve=curve, right=heading_type, url_pk=12345)
                table.draw()
                os.rename(table.filename,
                          "test_output/table_%s_%s.pdf" % (name, heading_type))
                self.assertTrue(True)