Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
8eb70141
Verified
Commit
8eb70141
authored
2 years ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
test: SCHWED-5783 activate tests in make check
parent
0b6d5455
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/alg/tests/CMakeLists.txt
+2
-1
2 additions, 1 deletion
modules/mol/alg/tests/CMakeLists.txt
modules/mol/alg/tests/test_ligand_scoring.py
+7
-7
7 additions, 7 deletions
modules/mol/alg/tests/test_ligand_scoring.py
with
9 additions
and
8 deletions
modules/mol/alg/tests/CMakeLists.txt
+
2
−
1
View file @
8eb70141
...
...
@@ -16,7 +16,8 @@ set(OST_MOL_ALG_UNIT_TESTS
if
(
COMPOUND_LIB
)
list
(
APPEND OST_MOL_ALG_UNIT_TESTS test_qsscoring.py
test_nonstandard.py
test_chain_mapping.py
)
test_chain_mapping.py
test_ligand_scoring.py
)
endif
()
ost_unittest
(
MODULE mol_alg SOURCES
"
${
OST_MOL_ALG_UNIT_TESTS
}
"
LINK ost_io
)
This diff is collapsed.
Click to expand it.
modules/mol/alg/tests/test_ligand_scoring.py
+
7
−
7
View file @
8eb70141
...
...
@@ -39,9 +39,9 @@ class TestLigandScoring(unittest.TestCase):
assert
len
(
sc
.
model_ligands
)
==
1
# Ensure the residues are not copied
assert
len
(
sc
.
_
target
.
Select
(
"
rname=MG
"
).
residues
)
==
2
assert
len
(
sc
.
_
target
.
Select
(
"
rname=G3D
"
).
residues
)
==
2
assert
len
(
sc
.
_
model
.
Select
(
"
rname=G3D
"
).
residues
)
==
1
assert
len
(
sc
.
target
.
Select
(
"
rname=MG
"
).
residues
)
==
2
assert
len
(
sc
.
target
.
Select
(
"
rname=G3D
"
).
residues
)
==
2
assert
len
(
sc
.
model
.
Select
(
"
rname=G3D
"
).
residues
)
==
1
# Pass residue handles
trg_lig
=
[
trg
.
FindResidue
(
"
F
"
,
1
),
trg
.
FindResidue
(
"
H
"
,
1
)]
...
...
@@ -52,9 +52,9 @@ class TestLigandScoring(unittest.TestCase):
assert
len
(
sc
.
model_ligands
)
==
1
# Ensure the residues are not copied
assert
len
(
sc
.
_
target
.
Select
(
"
rname=ZN
"
).
residues
)
==
1
assert
len
(
sc
.
_
target
.
Select
(
"
rname=G3D
"
).
residues
)
==
2
assert
len
(
sc
.
_
model
.
Select
(
"
rname=G3D
"
).
residues
)
==
1
assert
len
(
sc
.
target
.
Select
(
"
rname=ZN
"
).
residues
)
==
1
assert
len
(
sc
.
target
.
Select
(
"
rname=G3D
"
).
residues
)
==
2
assert
len
(
sc
.
model
.
Select
(
"
rname=G3D
"
).
residues
)
==
1
def
test_init_sdf_ligands
(
self
):
...
...
@@ -99,4 +99,4 @@ if __name__ == "__main__":
if
testutils
.
SetDefaultCompoundLib
():
testutils
.
RunTests
()
else
:
print
(
'
No compound lib available. Ignoring test_
chain_mapp
ing.py tests.
'
)
print
(
'
No compound lib available. Ignoring test_
ligand_scor
ing.py tests.
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment