Coverage for biobb_amber/test/unitests/test_sander/test_sander_mdrun.py: 100%

22 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-07 08:11 +0000

1from biobb_common.tools import test_fixtures as fx 

2from biobb_amber.sander.sander_mdrun import sander_mdrun 

3 

4 

5class TestSanderMDRun(): 

6 def setup_class(self): 

7 fx.test_setup(self, 'sander_mdrun') 

8 

9 def teardown_class(self): 

10 fx.test_teardown(self) 

11 # pass 

12 

13 def test_sander_mdrun(self): 

14 sander_mdrun(properties=self.properties, **self.paths) 

15 assert fx.not_empty(self.paths['output_log_path']) 

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

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

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

19 # assert fx.equal(self.paths['output_rst_path'], self.paths['ref_output_rst_path']) 

20 

21 

22class TestSanderMDRunDirectMDin(): 

23 def setup_class(self): 

24 fx.test_setup(self, 'sander_mdrun_direct_mdin') 

25 

26 def teardown_class(self): 

27 fx.test_teardown(self) 

28 # pass 

29 

30 def test_sander_mdrun(self): 

31 sander_mdrun(properties=self.properties, **self.paths) 

32 assert fx.not_empty(self.paths['output_log_path']) 

33 assert fx.not_empty(self.paths['output_rst_path']) 

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

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

36 # assert fx.equal(self.paths['output_rst_path'], self.paths['ref_output_rst_path'])