def test_charts_theme_validation(): from bokeh.plotting import figure p = figure() with pytest.raises(ValueError): defaults.apply(p)