def test_scale_without_a_mapping(): df = pd.DataFrame({ 'x': [1, 2, 3], }) p = (ggplot(df, aes('x', 'x')) + geom_point() + scale_color.scale_color_continuous()) with pytest.warns(PlotnineWarning): p.draw_test()
def test_scale_without_a_mapping(): df = pd.DataFrame({ 'x': [1, 2, 3], }) p = (ggplot(df, aes('x', 'x')) + geom_point() + scale_color.scale_color_continuous()) with pytest.warns(UserWarning): p.draw_test()