Coverage for biobb_gromacs / test / unitests / test_gromacs / test_genrestr.py: 100%
18 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-05 08:26 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-05 08:26 +0000
1# type: ignore
2from biobb_common.tools import test_fixtures as fx
3from biobb_gromacs.gromacs.genrestr import genrestr
6class TestGenrestr:
7 def setup_class(self):
8 fx.test_setup(self, 'genrestr')
10 def teardown_class(self):
11 # pass
12 fx.test_teardown(self)
14 def test_genrestr(self):
15 returncode = genrestr(properties=self.properties, **self.paths)
16 assert fx.not_empty(self.paths['output_itp_path'])
17 assert fx.equal(self.paths['output_itp_path'], self.paths['ref_output_itp_path'])
18 assert fx.exe_success(returncode)
20 def test_genrestr_noNDX(self):
21 self.paths.pop('input_ndx_path')
22 returncode = genrestr(properties=self.properties, **self.paths)
23 assert fx.not_empty(self.paths['output_itp_path'])
24 assert fx.equal(self.paths['output_itp_path'], self.paths['ref_output_itp_noNDX_path'])
25 assert fx.exe_success(returncode)