mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
Merge branch 'master' of https://github.com/gradio-app/gradio
This commit is contained in:
commit
7deb0aa22f
@ -26,26 +26,6 @@ gradio.egg-info/requires.txt
|
|||||||
gradio.egg-info/top_level.txt
|
gradio.egg-info/top_level.txt
|
||||||
gradio/frontend/asset-manifest.json
|
gradio/frontend/asset-manifest.json
|
||||||
gradio/frontend/index.html
|
gradio/frontend/index.html
|
||||||
gradio/frontend/static/bundle.css
|
|
||||||
gradio/frontend/static/bundle.css.map
|
|
||||||
gradio/frontend/static/bundle.js
|
|
||||||
gradio/frontend/static/bundle.js.LICENSE.txt
|
|
||||||
gradio/frontend/static/bundle.js.map
|
|
||||||
gradio/frontend/static/css/main.20be28ac.css
|
|
||||||
gradio/frontend/static/css/main.20be28ac.css.map
|
|
||||||
gradio/frontend/static/css/main.2b64a968.css
|
|
||||||
gradio/frontend/static/css/main.2b64a968.css.map
|
|
||||||
gradio/frontend/static/css/main.380e3222.css
|
|
||||||
gradio/frontend/static/css/main.380e3222.css.map
|
|
||||||
gradio/frontend/static/css/main.4aea80f8.css
|
|
||||||
gradio/frontend/static/css/main.4aea80f8.css.map
|
|
||||||
gradio/frontend/static/css/main.4f157d97.css
|
|
||||||
gradio/frontend/static/css/main.4f157d97.css.map
|
|
||||||
gradio/frontend/static/css/main.99922310.css
|
|
||||||
gradio/frontend/static/css/main.99922310.css.map
|
|
||||||
gradio/frontend/static/css/main.acb02c85.css
|
|
||||||
gradio/frontend/static/css/main.acb02c85.css.map
|
|
||||||
gradio/frontend/static/media/logo_loading.e93acd82.jpg
|
|
||||||
test/test_demos.py
|
test/test_demos.py
|
||||||
test/test_inputs.py
|
test/test_inputs.py
|
||||||
test/test_interfaces.py
|
test/test_interfaces.py
|
||||||
|
@ -109,6 +109,7 @@ class TestDemo(unittest.TestCase):
|
|||||||
"diff_texts", "magic_trick"))
|
"diff_texts", "magic_trick"))
|
||||||
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
||||||
random.getrandbits(32)))
|
random.getrandbits(32)))
|
||||||
|
time.sleep(1)
|
||||||
driver.save_screenshot(tmp)
|
driver.save_screenshot(tmp)
|
||||||
driver.close()
|
driver.close()
|
||||||
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
||||||
@ -137,6 +138,7 @@ class TestDemo(unittest.TestCase):
|
|||||||
(By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(1) .output_image"))
|
(By.CSS_SELECTOR, ".panel:nth-child(2) .component:nth-child(1) .output_image"))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
driver.save_screenshot(tmp)
|
driver.save_screenshot(tmp)
|
||||||
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
||||||
os.remove(tmp)
|
os.remove(tmp)
|
||||||
@ -168,6 +170,7 @@ class TestDemo(unittest.TestCase):
|
|||||||
"longest_word", "wonderful"))
|
"longest_word", "wonderful"))
|
||||||
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
||||||
random.getrandbits(32)))
|
random.getrandbits(32)))
|
||||||
|
time.sleep(1)
|
||||||
driver.save_screenshot(tmp)
|
driver.save_screenshot(tmp)
|
||||||
driver.close()
|
driver.close()
|
||||||
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
||||||
@ -195,6 +198,7 @@ class TestDemo(unittest.TestCase):
|
|||||||
"sentence_builder", "two_cats"))
|
"sentence_builder", "two_cats"))
|
||||||
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
tmp = os.path.join(current_dir, "test/tmp/{}.png".format(
|
||||||
random.getrandbits(32)))
|
random.getrandbits(32)))
|
||||||
|
time.sleep(1)
|
||||||
driver.save_screenshot(tmp)
|
driver.save_screenshot(tmp)
|
||||||
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
self.assertIsNone(compare_images(tmp, golden_img, TOLERANCE))
|
||||||
os.remove(tmp)
|
os.remove(tmp)
|
||||||
|
Loading…
Reference in New Issue
Block a user