Skip to content

Commit

Permalink
Fix image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 9, 2022
1 parent 9c83b0e commit f9758ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panel/tests/pane/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_load_from_stringio():

def test_loading_a_image_from_url():
"""Tests the loading of a image from a url"""
url = 'https://file-examples-com.github.io/uploads/2017/10/file_example_PNG_500kB.png'
url = 'https://raw.githubusercontent.com/holoviz/panel/master/doc/_static/logo.png'

image_pane = PNG(url)
image_data = image_pane._data()
Expand All @@ -114,7 +114,7 @@ def test_loading_a_image_from_pathlib():

def test_image_alt_text(document, comm):
"""Tests the loading of a image from a url"""
url = 'https://file-examples-com.github.io/uploads/2017/10/file_example_PNG_500kB.png'
url = 'https://raw.githubusercontent.com/holoviz/panel/master/doc/_static/logo.png'

image_pane = PNG(url, embed=False, alt_text="Some alt text")
model = image_pane.get_root(document, comm)
Expand All @@ -124,7 +124,7 @@ def test_image_alt_text(document, comm):

def test_image_link_url(document, comm):
"""Tests the loading of a image from a url"""
url = 'https://file-examples-com.github.io/uploads/2017/10/file_example_PNG_500kB.png'
url = 'https://raw.githubusercontent.com/holoviz/panel/master/doc/_static/logo.png'

image_pane = PNG(url, embed=False, link_url="http://anaconda.org")
model = image_pane.get_root(document, comm)
Expand Down

0 comments on commit f9758ea

Please sign in to comment.