示例#1
0
 def test_testing(self):
     import nose
     import bokeh
     nose.main = mock.MagicMock(return_value=True)
     bokeh.test(verbosity=100,
                xunitfile='xunitcapturefiledotxml.xml',
                exit=False)
     bokehdir = os.path.dirname(bokeh.__file__)
     nose.main.assert_called_with(
         exit=False,
         argv=[
             'nosetests', '--verbosity=100', '--with-xunit',
             '--xunit-file=xunitcapturefiledotxml.xml',
             '--logging-level=WARN',
             os.path.join(bokehdir, 'tests'),
             os.path.join(bokehdir, 'server/tests'),
             os.path.join(bokehdir, 'server/templates/tests')
         ])
示例#2
0
 def test_testing(self):
     import nose
     import bokeh
     nose.main = mock.MagicMock(return_value=True)
     bokeh.test(verbosity=100, xunitfile='xunitcapturefiledotxml.xml', exit=False)
     bokehdir = os.path.dirname(bokeh.__file__)
     nose.main.assert_called_with(
         exit=False,
         argv=[
             'nosetests',
             '--verbosity=100',
             '--with-xunit',
             '--xunit-file=xunitcapturefiledotxml.xml',
             '--logging-level=WARN',
             os.path.join(bokehdir, 'tests'),
             os.path.join(bokehdir, 'server/tests'),
             os.path.join(bokehdir, 'server/templates/tests')
         ]
     )
示例#3
0
import sys
import bokeh

if sys.platform.startswith('linux'):
    bokeh.test()

print('bokeh.__version__: %s' % bokeh.__version__)
assert bokeh.__version__ == '0.12.3'
示例#4
0
文件: runtests.py 项目: zazu94/bokeh
from bokeh import test

if __name__ == "__main__":
    test()
示例#5
0
import sys
import bokeh

if sys.platform != 'win32':
    bokeh.test()

print('bokeh.__version__: %s' % bokeh.__version__)
assert bokeh.__version__ == '0.11.1'
示例#6
0
import sys
import bokeh

if sys.platform != 'win32':
    bokeh.test(verbosity=2, exit=False)

print('bokeh.__version__: %s' % bokeh.__version__)
#assert bokeh.__version__ == '0.7.1'