mirror of
https://github.com/schrodinger/pymol-open-source.git
synced 2026-06-04 20:04:21 +08:00
--no-mmlibs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user