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') ])
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') ] )
import sys import bokeh if sys.platform.startswith('linux'): bokeh.test() print('bokeh.__version__: %s' % bokeh.__version__) assert bokeh.__version__ == '0.12.3'
from bokeh import test if __name__ == "__main__": test()
import sys import bokeh if sys.platform != 'win32': bokeh.test() print('bokeh.__version__: %s' % bokeh.__version__) assert bokeh.__version__ == '0.11.1'
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'