Coverage for biobb_haddock/test/unitests/test_haddock/test_topology.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.10.2, created at 2025-08-07 08:48 +0000

1# type: ignore 

2from biobb_common.tools import test_fixtures as fx 

3from biobb_haddock.haddock.topology import topology 

4import warnings 

5 

6 

7class TestTopology(): 

8 def setup_class(self): 

9 fx.test_setup(self, 'topology') 

10 

11 def teardown_class(self): 

12 # pass 

13 fx.test_teardown(self) 

14 

15 def test_topology(self): 

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

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

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

19 assert fx.not_empty(self.paths['output_haddock_wf_data_zip']) 

20 # assert fx.equal(self.paths['mol1_output_top_zip_path'], self.paths['ref_mol1_output_top_zip_path']) 

21 # assert fx.equal(self.paths['mol2_output_top_zip_path'], self.paths['ref_mol2_output_top_zip_path']) 

22 warnings.warn( 

23 "The content of the output_haddock_wf_data_zip is not being checked.\n" 

24 f"Do it manually at {self.testfile_dir}")