Commit 14db9e69 authored by Michael Droettboom's avatar Michael Droettboom

Fix matplotlib test

parent e293fba9
def test_matplotlib(selenium): def test_matplotlib(selenium):
selenium.load_package("matplotlib") selenium.load_package("matplotlib")
selenium.run("from matplotlib import pyplot as plt")
selenium.run("x = plt.plot([1,2,3])")
img = selenium.run( img = selenium.run(
"from matplotlib import pyplot as plt\n"
"plt.plot([1,2,3])\n"
"plt.gcf()._repr_html_().src" "plt.gcf()._repr_html_().src"
) )
assert img.startswith('data:image/png;base64,') assert img.startswith('data:image/png;base64,')
assert len(img) == 42 assert len(img) == 26766
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment