1717 from prody import LOGGER
1818 LOGGER .verbosity = 'none'
1919
20+ BIOEXCEL_TESTS = bool (os .environ .get ('PRODY_BIOEXCEL_TESTS' , False ))
21+ BIOEXCEL_SKIP_MSG = 'Set PRODY_BIOEXCEL_TESTS=1 to enable BioExcel tests'
22+
2023 FULL_N_ATOMS = 12152
2124 SELE_N_ATOMS = 3908
2225 FULL_N_ATOMS_CV = 52350
2326 N_FRAMES_1 = 10
2427 N_FRAMES_2 = 6
2528
29+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
2630 class TestFetchParseBioexcelPDB (unittest .TestCase ):
2731
2832 @classmethod
@@ -153,6 +157,7 @@ def tearDownClass(cls):
153157 shutil .rmtree (cls .workdir )
154158
155159
160+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
156161 class TestFetchConvertParseBioexcelTop (unittest .TestCase ):
157162
158163 @classmethod
@@ -378,6 +383,7 @@ def tearDownClass(cls):
378383 shutil .rmtree (cls .workdir )
379384
380385
386+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
381387 class TestCheckSelection (unittest .TestCase ):
382388 """Test that checkSelection gives the right errors and outputs."""
383389
@@ -402,6 +408,7 @@ def testBoth(self):
402408 self .assertEqual (checkSelection (** {'selection' : 'backbone and _C' }), 'backbone and _C' )
403409
404410
411+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
405412 class TestCheckQuery (unittest .TestCase ):
406413 """Test that checkQuery gives the right errors and outputs."""
407414
@@ -417,6 +424,7 @@ def testCorrect(self):
417424 self .assertEqual (checkQuery (self .query ), self .query )
418425
419426
427+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
420428 class TestCheckConvert (unittest .TestCase ):
421429 """Test that checkConvert gives the right errors and outputs."""
422430
@@ -434,6 +442,7 @@ def testNothing(self):
434442 self .assertTrue (checkConvert (** {}))
435443
436444
445+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
437446 class TestCheckTimeout (unittest .TestCase ):
438447 """Test that checkTimeout gives the right errors and outputs."""
439448
@@ -447,6 +456,7 @@ def testReplace(self):
447456 def testDefault (self ):
448457 self .assertEqual (checkTimeout (** {}), 200 )
449458
459+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
450460 class TestCheckFrames (unittest .TestCase ):
451461 """Test that checkFrames gives the right errors and outputs."""
452462
@@ -482,6 +492,7 @@ def testBadValue4(self):
482492 checkFrames (** {'frames' : '1,1-2-3' })
483493
484494
495+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
485496 class TestCheckFilePath (unittest .TestCase ):
486497 """Test that checkFilePath gives the right errors and outputs."""
487498
@@ -523,6 +534,7 @@ def testReplaceBoth(self):
523534 def tearDownClass (cls ):
524535 shutil .rmtree (cls .workdir )
525536
537+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
526538 class TestFetchConvertParseBioexcelTraj (unittest .TestCase ):
527539
528540 @classmethod
@@ -785,6 +797,7 @@ def tearDownClass(cls):
785797 os .chdir ('..' )
786798 shutil .rmtree (cls .workdir )
787799
800+ @unittest .skipUnless (BIOEXCEL_TESTS , BIOEXCEL_SKIP_MSG )
788801 class TestOnlyConvertParseBioexcel (unittest .TestCase ):
789802
790803 @classmethod
0 commit comments