Coverage for biobb_analysis/test/unitests/test_gromacs/test_gmx_image.py: 100%

12 statements  

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

1from biobb_common.tools import test_fixtures as fx 

2from biobb_analysis.gromacs.gmx_image import gmx_image 

3# import platform 

4 

5 

6class TestGMXImage(): 

7 def setup_class(self): 

8 fx.test_setup(self, 'gmx_image') 

9 

10 def teardown_class(self): 

11 fx.test_teardown(self) 

12 pass 

13 

14 def test_image(self): 

15 gmx_image(properties=self.properties, **self.paths) 

16 assert fx.not_empty(self.paths['output_traj_path']) 

17 # assert gmx_check(self.paths['output_traj_path'], self.paths['ref_output_traj_path'], gmx=self.properties.get('binary_path', 'gmx')) 

18 assert fx.equal(self.paths['output_traj_path'], self.paths['ref_output_traj_path']) 

19 # if platform.system() == 'Darwin': 

20 # assert fx.equal(self.paths['output_traj_path'], self.paths['ref_output_traj_path'])