Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProMod3
Manage
Activity
Members
Plan
Jira
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
ProMod3
Commits
9a7ed966
Commit
9a7ed966
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
Adapt compound library unit tests to OpenStructure 2.5.0
parent
e7975e4d
Branches
Branches containing commit
Tags
3.3.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/test_setcompoundschemlib.py
+4
-7
4 additions, 7 deletions
core/tests/test_setcompoundschemlib.py
with
4 additions
and
7 deletions
core/tests/test_setcompoundschemlib.py
+
4
−
7
View file @
9a7ed966
...
...
@@ -49,9 +49,10 @@ class SetCompoundsChemlibTests(unittest.TestCase):
self
.
assertEqual
(
cmpd
.
formula
,
fake_gly
[
1
])
def
testCompoundsLibLoadedOnImport
(
self
):
# Check that importing promod3 loads the compounds library. First we
# test that we do not have a lib before importing, afterwards we import
# and check for Glycine. This test reads the systems/ installed lib
# Check that importing promod3 loads the compounds library. If we
# compiled OpenStructure with a valid compound library, it should
# already be loaded (as of OST 2.5.0) but if we import promod3, it
# should be there for sure. This test reads the systems/ installed lib
# which means an external data dependency. Lets assume this is OK: if
# we do not have a chemical components dictionary, we do not know amino
# acids, so ProMod3 would not work... We also check for essential
...
...
@@ -61,10 +62,6 @@ class SetCompoundsChemlibTests(unittest.TestCase):
# week, is that things may change and then our compounds list here will
# have to be updated, too.
# before importing, we do not want to see a lib
clib
=
conop
.
GetDefaultLib
()
self
.
assertIsNone
(
clib
)
# now there should be one
import
promod3
# pylint: disable=unused-variable
clib
=
conop
.
GetDefaultLib
()
...
...
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