Exemplo n.º 1
0
def test_create_Bokeh_with_invalid_data():
    with pytest.raises(ValueError):
        i.PlotlyPlotBlock(pd.Series([1, 2, 3]).plot())
Exemplo n.º 2
0
def test_pass_on_plotly_kwargs():
    fig = go.Figure()
    with patch('plotly.offline.plot') as pl:
        i.PlotlyPlotBlock(fig, plotly_kwargs={'a': 'B'})
    assert pl.call_args[1]['a'] == 'B'