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

14 statements  

« prev     ^ index     » next       coverage.py v7.10.1, created at 2025-08-06 14:13 +0000

1# type: ignore 

2from biobb_common.tools import test_fixtures as fx 

3from biobb_gromacs.gromacs.pdb2gmx import pdb2gmx 

4 

5 

6class TestPdb2gmx: 

7 def setup_class(self): 

8 fx.test_setup(self, 'pdb2gmx') 

9 

10 def teardown_class(self): 

11 # pass 

12 fx.test_teardown(self) 

13 

14 def test_pdb2gmx(self): 

15 returncode = pdb2gmx(properties=self.properties, **self.paths) 

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

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

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

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

20 assert fx.exe_success(returncode)