Here are the examples of the python api bokeh.resources.__version__ taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Source File : test_resources.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_cdn(self):
resources.__version__ = "1.0"
r = resources.Resources(mode="cdn", version="1.0")
assert r.mode == "cdn"
assert r.dev == False
assert r.js_raw == [DEFAULT_LOG_JS_RAW]
assert r.css_raw == []
assert r.messages == []
resources.__version__ = "1.0-1-abc"
r = resources.Resources(mode="cdn", version="1.0")
assert r.messages == [{
'text': "Requesting CDN BokehJS version '1.0' from Bokeh development version '1.0-1-abc'. This configuration is unsupported and may not work!",
'type': 'warn'}
]
def test_server_default(self):