⬅ biobb_analysis/test/unitests/test_gromacs/test_gmx_rmsf_container.py source

1 # type: ignore
2 from biobb_common.tools import test_fixtures as fx
3 from biobb_analysis.gromacs.gmx_rmsf import gmx_rmsf
4 import pytest
5 import sys
6  
  • E302 Expected 2 blank lines, found 1
7 class TestGMXRmsfDocker():
8 def setup_class(self):
9 fx.test_setup(self, 'gmx_rmsf_docker')
10  
11 def teardown_class(self):
12 fx.test_teardown(self)
13 pass
14  
15 def test_rmsf_docker(self):
16 gmx_rmsf(properties=self.properties, **self.paths)
17 assert fx.not_empty(self.paths['output_xvg_path'])
18 assert fx.equal(self.paths['output_xvg_path'], self.paths['ref_output_xvg_path'])
19  
  • E302 Expected 2 blank lines, found 1
20 @pytest.mark.skipif(sys.platform == 'darwin', reason="singularity not available on macOS")
21 class TestGMXRmsfSingularity():
22 def setup_class(self):
23 fx.test_setup(self, 'gmx_rmsf_singularity')
24  
25 def teardown_class(self):
26 fx.test_teardown(self)
27 pass
28  
29 def test_rmsf_singularity(self):
30 gmx_rmsf(properties=self.properties, **self.paths)
31 assert fx.not_empty(self.paths['output_xvg_path'])
32 assert fx.equal(self.paths['output_xvg_path'], self.paths['ref_output_xvg_path'])