Skip to content
Snippets Groups Projects
Verified Commit f36779d1 authored by Xavier Robin's avatar Xavier Robin
Browse files

test: skip explicitly

parent 291cb80e
Branches
Tags
No related merge requests found
...@@ -18,9 +18,8 @@ class TestCADBindings(unittest.TestCase): ...@@ -18,9 +18,8 @@ class TestCADBindings(unittest.TestCase):
cad_read_g_path = settings.Locate('CADscore_read_global_scores.bash') cad_read_g_path = settings.Locate('CADscore_read_global_scores.bash')
cad_read_l_path = settings.Locate('CADscore_read_local_scores.bash') cad_read_l_path = settings.Locate('CADscore_read_local_scores.bash')
executable_path = settings.Locate('voroprot2') executable_path = settings.Locate('voroprot2')
except: except settings.FileNotFound:
print("Could not find CAD score classic executables: ignoring unit tests") self.skipTest("Could not find CAD score classic executables: ignoring unit tests")
return
cad_result = cadscore.CADScore(self.protein, self.protein, cad_result = cadscore.CADScore(self.protein, self.protein,
label="cad_classic") label="cad_classic")
...@@ -47,9 +46,8 @@ class TestCADBindings(unittest.TestCase): ...@@ -47,9 +46,8 @@ class TestCADBindings(unittest.TestCase):
# all of the following need to be present # all of the following need to be present
voronota_cadscore_path = settings.Locate("voronota-cadscore") voronota_cadscore_path = settings.Locate("voronota-cadscore")
executable_path = settings.Locate("voronota") executable_path = settings.Locate("voronota")
except: except settings.FileNotFound:
print("Could not find CAD score voronota executables: ignoring unit tests") self.skipTest("Could not find CAD score voronota executables: ignoring unit tests")
return
cad_result = cadscore.CADScore(self.protein, self.protein, mode="voronota", cad_result = cadscore.CADScore(self.protein, self.protein, mode="voronota",
label="cad_voronota") label="cad_voronota")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment