From 25d75db1d6794ef3dbb609aa5561471a96af0fb4 Mon Sep 17 00:00:00 2001 From: Xavier Robin <xavier.robin@unibas.ch> Date: Tue, 16 May 2023 14:37:53 +0200 Subject: [PATCH] test: SCHWED-5913 add checks for compound lib --- docker/test_docker.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker/test_docker.py b/docker/test_docker.py index 38fae4a60..a1fabf916 100644 --- a/docker/test_docker.py +++ b/docker/test_docker.py @@ -1,5 +1,14 @@ import ost from ost.mol.alg import qsscoring +from ost import conop + +lib = conop.GetDefaultLib() +if lib is not None: + print("You have a valid compound library, last updated on " + + lib.GetCreationDate()) +else: + ost.LogError("No compound library set as default!") + print("The compound library is not working properly!") # load two biounits to compare ent_full = ost.io.LoadPDB('3ia3', remote=True) @@ -15,5 +24,7 @@ except qsscoring.QSscoreError as ex: # default handling: report failure and set score to 0 ost.LogError('QSscore failed:', str(ex)) qs_score = 0 + print("OST is not working properly!") +else: + print("OST is working!") -print("OST is working!") -- GitLab