From 876eaef701d2fdd124ca0eee8a4a00f811416bd3 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 7 Jul 2020 11:49:26 +0530 Subject: [PATCH] added file extension check to backendTest --- tests/backendTest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/backendTest.py b/tests/backendTest.py index 470444c..31b3a99 100644 --- a/tests/backendTest.py +++ b/tests/backendTest.py @@ -68,6 +68,13 @@ f = os.path.join(cd,"static/uploads") #t = os.path.join(f,"receptor",target) #r = os.path.join(f,"ligands",ligand) #c = os.path.join(f,"configs",config) + +if ".pdbqt" not in receptor_name: + receptor_name+=".pdbqt" + +if ".pdbqt" not in ligand_name: + ligand_name+=".pdbqt" + print(f) import tempfile from shutil import copy