mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
fixed failing test on main (#1023)
This commit is contained in:
parent
9492d5a631
commit
5eb8763bd5
@ -55,7 +55,7 @@
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
|
||||
<title>Gradio</title>
|
||||
<script type="module" crossorigin src="./assets/index.ebb592c6.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.a2163344.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.39bf42f9.css">
|
||||
</head>
|
||||
|
||||
|
@ -34,8 +34,7 @@ class ImagePreprocessing(unittest.TestCase):
|
||||
|
||||
def test_encode_url_to_base64(self):
|
||||
output_base64 = gr.processing_utils.encode_url_to_base64(
|
||||
"https://raw.githubusercontent.com/gradio-app/gradio/master/test"
|
||||
"/test_data/test_image.png"
|
||||
"https://raw.githubusercontent.com/gradio-app/gradio/main/gradio/test_data/test_image.png"
|
||||
)
|
||||
self.assertEqual(output_base64, deepcopy(media_data.BASE64_IMAGE))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user