dec89a73dbf20c7dc2a8358864981de3080c84ed,bokeh/io/tests/test_export.py,,test_get_screenshot_as_png_with_driver,#,64

Before Change


                  outline_line_color=None, background_fill_color=None,
                  border_fill_color=None)

    driver = webdriver.PhantomJS(service_log_path=os.path.devnull)

    png = bie.get_screenshot_as_png(layout, driver=driver)

    // Have to manually clean up the driver session
    terminate_web_driver(driver)

    assert png.size == (20, 20)
    // a 20x20px image of transparent pixels
    assert png.tobytes() == ("\x00"*1600).encode()

After Change


                  outline_line_color=None, background_fill_color=None,
                  border_fill_color=None)

    driver = create_webdriver()
    try:
        png = bie.get_screenshot_as_png(layout, driver=driver)
    finally:
        terminate_webdriver(driver)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: bokeh/bokeh
Commit Name: dec89a73dbf20c7dc2a8358864981de3080c84ed
Time: 2018-04-11
Author: mattpap@gmail.com
File Name: bokeh/io/tests/test_export.py
Class Name:
Method Name: test_get_screenshot_as_png_with_driver


Project Name: bokeh/bokeh
Commit Name: dec89a73dbf20c7dc2a8358864981de3080c84ed
Time: 2018-04-11
Author: mattpap@gmail.com
File Name: bokeh/io/tests/test_export.py
Class Name:
Method Name: test_get_screenshot_as_png_large_plot


Project Name: bokeh/bokeh
Commit Name: dec89a73dbf20c7dc2a8358864981de3080c84ed
Time: 2018-04-11
Author: mattpap@gmail.com
File Name: bokeh/io/tests/test_export.py
Class Name:
Method Name: test_get_svgs_with_svg_present