Skip to content
Snippets Groups Projects
Verified Commit 8eb70141 authored by Xavier Robin's avatar Xavier Robin
Browse files

test: SCHWED-5783 activate tests in make check

parent 0b6d5455
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,8 @@ set(OST_MOL_ALG_UNIT_TESTS ...@@ -16,7 +16,8 @@ set(OST_MOL_ALG_UNIT_TESTS
if (COMPOUND_LIB) if (COMPOUND_LIB)
list(APPEND OST_MOL_ALG_UNIT_TESTS test_qsscoring.py list(APPEND OST_MOL_ALG_UNIT_TESTS test_qsscoring.py
test_nonstandard.py test_nonstandard.py
test_chain_mapping.py) test_chain_mapping.py
test_ligand_scoring.py)
endif() endif()
ost_unittest(MODULE mol_alg SOURCES "${OST_MOL_ALG_UNIT_TESTS}" LINK ost_io) ost_unittest(MODULE mol_alg SOURCES "${OST_MOL_ALG_UNIT_TESTS}" LINK ost_io)
...@@ -39,9 +39,9 @@ class TestLigandScoring(unittest.TestCase): ...@@ -39,9 +39,9 @@ class TestLigandScoring(unittest.TestCase):
assert len(sc.model_ligands) == 1 assert len(sc.model_ligands) == 1
# Ensure the residues are not copied # Ensure the residues are not copied
assert len(sc._target.Select("rname=MG").residues) == 2 assert len(sc.target.Select("rname=MG").residues) == 2
assert len(sc._target.Select("rname=G3D").residues) == 2 assert len(sc.target.Select("rname=G3D").residues) == 2
assert len(sc._model.Select("rname=G3D").residues) == 1 assert len(sc.model.Select("rname=G3D").residues) == 1
# Pass residue handles # Pass residue handles
trg_lig = [trg.FindResidue("F", 1), trg.FindResidue("H", 1)] trg_lig = [trg.FindResidue("F", 1), trg.FindResidue("H", 1)]
...@@ -52,9 +52,9 @@ class TestLigandScoring(unittest.TestCase): ...@@ -52,9 +52,9 @@ class TestLigandScoring(unittest.TestCase):
assert len(sc.model_ligands) == 1 assert len(sc.model_ligands) == 1
# Ensure the residues are not copied # Ensure the residues are not copied
assert len(sc._target.Select("rname=ZN").residues) == 1 assert len(sc.target.Select("rname=ZN").residues) == 1
assert len(sc._target.Select("rname=G3D").residues) == 2 assert len(sc.target.Select("rname=G3D").residues) == 2
assert len(sc._model.Select("rname=G3D").residues) == 1 assert len(sc.model.Select("rname=G3D").residues) == 1
def test_init_sdf_ligands(self): def test_init_sdf_ligands(self):
...@@ -99,4 +99,4 @@ if __name__ == "__main__": ...@@ -99,4 +99,4 @@ if __name__ == "__main__":
if testutils.SetDefaultCompoundLib(): if testutils.SetDefaultCompoundLib():
testutils.RunTests() testutils.RunTests()
else: else:
print('No compound lib available. Ignoring test_chain_mapping.py tests.') print('No compound lib available. Ignoring test_ligand_scoring.py tests.')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment