--no-mmlibs

This commit is contained in:
Thomas Holder
2017-10-05 14:48:36 +02:00
parent 5c852a7d24
commit 16a760a8e5
5 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
python
import sys, os
_testing_py = os.path.join(os.path.dirname(__script__), 'testing.py')
sys.argv = [_testing_py, '--run', 'all', '--offline']
sys.argv = [_testing_py, '--run', 'all', '--offline', '--no-mmlibs']
cmd.do('run ' + _testing_py)
python end

View File

@@ -80,6 +80,7 @@ else:
parser.add_argument('filenames', nargs='*', default=[])
parser.add_argument('--out', default=sys.stdout)
parser.add_argument('--offline', action='store_true')
parser.add_argument('--no-mmlibs', action='store_true')
parser.add_argument('--verbosity', type=int, default=2)
have_dash_dash = __file__.startswith(sys.argv[0]) or '--run' in sys.argv
@@ -164,6 +165,9 @@ else:
if hasflag('network') and cliargs.offline:
return unittest.skip('no network')(func)
if hasflag('mmlibs') and cliargs.no_mmlibs:
return unittest.skip('no mmlibs')(func)
if hasflag('no_run_all') and run_all:
return unittest.skip('skip with all')(func)
@@ -345,6 +349,7 @@ else:
self.oldcwd = os.getcwd()
cmd.reinitialize()
cmd.viewport(640, 480)
cmd.set('suspend_undo')
cwd = self.moddirs[type(self).__module__]
os.chdir(cwd)

View File

@@ -32,6 +32,7 @@ class TestColorramping(testing.PyMOLTestCase):
@testing.requires('gui')
def testVolumePanel(self):
self.skipTest("no tk")
self._sample_data()
cmd.volume('vol', 'map')
cmd.volume_panel('vol')

View File

@@ -11,6 +11,7 @@ import unittest
@testing.requires('no_edu')
class TestMMPyMOLx(testing.PyMOLTestCase):
@testing.requires('mmlibs')
def testStereo(self):
cmd.fragment('ala')
cmd.remove('hydro')
@@ -34,6 +35,7 @@ class TestMMPyMOLx(testing.PyMOLTestCase):
cmd.iterate('name CA', 'labels.append(stereo)', space=locals())
self.assertEqual(labels, ['R'])
@testing.requires('mmlibs')
def testStereoPYMOL2782(self):
# L-Cysteine has R configuration
cmd.fragment('cys')

View File

@@ -7,6 +7,7 @@ import os
from pymol import cmd, testing, stored
import unittest
@testing.requires('mmlibs')
@testing.requires('incentive')
@testing.requires('no_edu')
class TestPYMOL317(testing.PyMOLTestCase):