Coverage for biobb_gromacs/test/unitests/test_gromacs/test_genion.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-25 09:23 +0000

1# type: ignore 

2from biobb_common.tools import test_fixtures as fx 

3from biobb_gromacs.gromacs.genion import genion 

4# import platform 

5 

6 

7class TestGenion: 

8 def setup_class(self): 

9 fx.test_setup(self, 'genion') 

10 

11 def teardown_class(self): 

12 # pass 

13 fx.test_teardown(self) 

14 

15 def test_genion(self): 

16 returncode = genion(properties=self.properties, **self.paths) 

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

18 assert fx.not_empty(self.paths['output_top_zip_path']) 

19 assert fx.compare_size(self.paths['output_gro_path'], self.paths['ref_output_gro_path']) 

20 assert fx.compare_size(self.paths['output_top_zip_path'], self.paths['ref_output_top_zip_path']) 

21 assert fx.exe_success(returncode) 

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

23 # assert fx.equal(self.paths['output_gro_path'], self.paths['ref_output_gro_path']) 

24 # assert fx.equal(self.paths['output_top_zip_path'], self.paths['ref_output_top_zip_path'])