Coverage for biobb_model/test/unitests/test_model/test_fix_pdb.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-28 11:32 +0000

1# type: ignore 

2from biobb_common.tools import test_fixtures as fx 

3from biobb_model.model.fix_pdb import fix_pdb 

4 

5 

6class TestFixPdb: 

7 def setup_class(self): 

8 fx.test_setup(self, 'fix_pdb') 

9 

10 def teardown_class(self): 

11 # pass 

12 fx.test_teardown(self) 

13 

14 def test_launch(self): 

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

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

17 assert fx.compare_hash(self.paths['output_pdb_path'], self.paths['reference_output_pdb_path']) 

18 # Error in Biopython PDB parser 

19 # assert fx.equal(self.paths['output_pdb_path'], self.paths['reference_output_pdb_path'])