def test_no_server_common() -> None: ''' Basic usage of Bokeh should not result in any server code being imported. This test ensures that importing basic modules does not bring in bokeh.server. ''' proc = run([python, "-c", verify_clean_imports('bokeh.server', modules)]) assert proc.returncode == 0, "bokeh.server imported in common modules"
def test_no_ipython_common_combined() -> None: ''' Basic usage of Bokeh should not result in any IPython code being imported. This test ensures that importing basic modules does not bring in IPython. ''' proc = run([python, "-c", verify_clean_imports('IPython', MODULES)]) assert proc.returncode == 0, "IPython imported in common modules"
def test_no_selenium_common_combined() -> None: ''' Basic usage of Bokeh should not result in any Selenium code being imported. This test ensures that importing basic modules does not bring in Tornado. ''' proc = run([python, "-c", verify_clean_imports('selenium', MODULES)]) assert proc.returncode == 0, "Selenium imported in common modules"
def test_no_pands_common_combined() -> None: ''' In order to keep the initial import times reasonable, import of Bokeh should not result in any Pandas code being imported. This test ensures that importing basic modules does not bring in pandas. ''' proc = run([python, "-c", verify_clean_imports('pandas', MODULES)]) assert proc.returncode == 0, "pandas imported in common modules"