Coverage for biobb_dna/test/unitests/test_dna/test_timeseries.py: 94%

17 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-07 09:06 +0000

1from biobb_common.tools import test_fixtures as fx 

2from biobb_dna.dna.dna_timeseries import dna_timeseries 

3import platform 

4 

5import logging 

6mpl_logger = logging.getLogger("matplotlib") 

7mpl_logger.setLevel(logging.ERROR) 

8 

9 

10class TestTimeSeries(): 

11 def setup_class(self): 

12 fx.test_setup(self, 'dna_timeseries') 

13 

14 def teardown_class(self): 

15 fx.test_teardown(self) 

16 

17 def test_helpartimeseries(self): 

18 returncode = dna_timeseries(properties=self.properties, **self.paths) 

19 assert fx.not_empty(self.paths['output_zip_path']) 

20 assert fx.exe_success(returncode) 

21 if platform.system() == 'Darwin': 

22 assert fx.equal(self.paths['output_zip_path'], self.paths['ref_output_zip_path'])