Coverage for biobb_dna/test/unitests/test_backbone/test_puckering.py: 94%
16 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-28 10:36 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-28 10:36 +0000
1# type: ignore
2from biobb_common.tools import test_fixtures as fx
3from biobb_dna.backbone.puckering import puckering
4import platform
7class TestPuckering():
8 def setup_class(self):
9 fx.test_setup(self, 'puckering')
11 def teardown_class(self):
12 fx.test_teardown(self)
14 def test_puckering(self):
15 returncode = puckering(properties=self.properties, **self.paths)
16 assert fx.not_empty(self.paths['output_csv_path'])
17 assert fx.not_empty(self.paths['output_jpg_path'])
18 assert fx.exe_success(returncode)
19 if platform.system() == 'Darwin':
20 assert fx.equal(self.paths['output_csv_path'], self.paths['ref_csv_output'])
21 assert fx.equal(self.paths['output_jpg_path'], self.paths['ref_jpg_output'], percent_tolerance=20)