Skip to content
Snippets Groups Projects
Commit 9a7ed966 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

Adapt compound library unit tests to OpenStructure 2.5.0

parent e7975e4d
Branches
Tags 3.3.1
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment