From 9d6b2d4ef3419ea7fe486fbe25a7c7e923310af3 Mon Sep 17 00:00:00 2001 From: Andreas Schenk <andreas_schenk@hms.harvard.edu> Date: Tue, 5 Jun 2012 12:13:14 -0400 Subject: [PATCH] Added test for presence of rule based builder in test_aligntoseqres.py --- modules/seq/alg/tests/test_aligntoseqres.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/seq/alg/tests/test_aligntoseqres.py b/modules/seq/alg/tests/test_aligntoseqres.py index 0f4b8ceaa..6c390008e 100644 --- a/modules/seq/alg/tests/test_aligntoseqres.py +++ b/modules/seq/alg/tests/test_aligntoseqres.py @@ -68,5 +68,9 @@ class TestAlignToSeqRes(unittest.TestCase): self.assertEqual(seq.alg.ValidateSEQRESAlignment(seqres_aln, chain), False) if __name__ == "__main__": - from ost import testutils - testutils.RunTests() + builder=conop.GetBuilder() + if not hasattr(builder, 'compound_lib'): + print 'default builder does not use compound library. ignoring unit tests' + else: + from ost import testutils + testutils.RunTests() -- GitLab