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

12 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-14 14:38 +0000

1# type: ignore 

2from biobb_common.tools import test_fixtures as fx 

3from biobb_analysis.gromacs.gmx_image import gmx_image 

4# import platform 

5 

6 

7class TestGMXImage(): 

8 def setup_class(self): 

9 fx.test_setup(self, 'gmx_image') 

10 

11 def teardown_class(self): 

12 fx.test_teardown(self) 

13 pass 

14 

15 def test_image(self): 

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

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

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

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

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

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