60b177518e6f6ecbbd56389b4dfa19fb6430ce3a,bokeh/models/tests/test_annotations.py,,test_ColorBar,#,50

Before Change


    yield check_text_properties, color_bar, "title_", "10pt", "bottom", "italic"
    yield check_text_properties, color_bar, "major_label_", "8pt", "middle", "normal", "center"
    yield check_line_properties, color_bar, "major_tick_", "//ffffff"
    yield check_line_properties, color_bar, "minor_tick_", None
    yield check_line_properties, color_bar, "bar_", None
    yield check_line_properties, color_bar, "border_", None
    yield check_fill_properties, color_bar, "background_", "//ffffff", 0.95
    yield (check_properties_existence, color_bar, [
        "plot",
        "level",
        "visible",
        "location",
        "orientation",
        "height",
        "width",
        "scale_alpha",
        "title",
        "title_standoff",
        "ticker",
        "formatter",
        "color_mapper",
        "margin",
        "padding",
        "label_standoff",
        "major_tick_in",
        "major_tick_out",
        "minor_tick_in",
        "minor_tick_out"],
        prefix("title_", TEXT),
        prefix("major_label_", TEXT),
        prefix("major_tick_", LINE),
        prefix("minor_tick_", LINE),
        prefix("bar_", LINE),
        prefix("border_", LINE),
        prefix("background_", FILL)
    )

def test_Arrow():
    arrow = Arrow()
    assert arrow.plot is None

After Change




def test_ColorBar():
    color_bar = ColorBar()
    assert color_bar.plot is None
    assert color_bar.location == "top_right"
    assert color_bar.orientation == "vertical"
    assert color_bar.height == "auto"
    assert color_bar.width == "auto"
    assert color_bar.scale_alpha == 1.0
    assert color_bar.title is None
    assert color_bar.title_standoff == 2
    assert isinstance(color_bar.ticker, BasicTicker)
    assert isinstance(color_bar.formatter, BasicTickFormatter)
    assert color_bar.color_mapper is None
    assert color_bar.margin == 30
    assert color_bar.padding == 10
    assert color_bar.label_standoff == 5
    assert color_bar.major_tick_in == 5
    assert color_bar.major_tick_out == 0
    assert color_bar.minor_tick_in == 0
    assert color_bar.minor_tick_out == 0
    check_text_properties(color_bar, "title_", "10pt", "bottom", "italic")
    check_text_properties(color_bar, "major_label_", "8pt", "middle", "normal", "center")
    check_line_properties(color_bar, "major_tick_", "//ffffff")
    check_line_properties(color_bar, "minor_tick_", None)
    check_line_properties(color_bar, "bar_", None)
    check_line_properties(color_bar, "border_", None)
    check_fill_properties(color_bar, "background_", "//ffffff", 0.95)
    check_properties_existence(color_bar, [
        "plot",
        "level",
        "visible",
        "location",
        "orientation",
        "height",
        "width",
        "scale_alpha",
        "title",
        "title_standoff",
        "ticker",
        "formatter",
        "color_mapper",
        "margin",
        "padding",
        "label_standoff",
        "major_tick_in",
        "major_tick_out",
        "minor_tick_in",
        "minor_tick_out"],
        prefix("title_", TEXT),
        prefix("major_label_", TEXT),
        prefix("major_tick_", LINE),
        prefix("minor_tick_", LINE),
        prefix("bar_", LINE),
        prefix("border_", LINE),
        prefix("background_", FILL)
    )


def test_Arrow():
    arrow = Arrow()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_ColorBar


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_ColorBar


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_LabelSet


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_Label