1 # type: ignore
2 import pytest
3 from biobb_common.tools import test_fixtures as fx
4 from biobb_analysis.gromacs.gmx_check import gmx_check
5
6
7 class TestGMXCheckDocker():
8 def setup_class(self):
9 fx.test_setup(self, 'gmx_check_docker')
10
11 def teardown_class(self):
12 fx.test_teardown(self)
13 pass
14
15 def test_check_docker(self):
16 gmx_check(properties=self.properties, **self.paths)
17 assert fx.not_empty(self.paths['output_log_path'])
18 assert fx.equal(self.paths['output_log_path'], self.paths['ref_output_log_path'])
19
20
21 @pytest.mark.skip(reason="singularity currently not available")
22 class TestGMXCheckSingularity():
23 def setup_class(self):
24 fx.test_setup(self, 'gmx_check_singularity')
25
26 def teardown_class(self):
27 fx.test_teardown(self)
28 pass
29
30 def test_check_singularity(self):
31 gmx_check(properties=self.properties, **self.paths)
32 assert fx.not_empty(self.paths['output_log_path'])
33 assert fx.equal(self.paths['output_log_path'], self.paths['ref_output_log_path'])