aboutsummaryrefslogtreecommitdiff
path: root/test/extras_test.py
diff options
context:
space:
mode:
authorVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-10-29 21:50:06 +0300
committerVladimir Repin <32306715+mezotaken@users.noreply.github.com>2022-10-29 21:50:06 +0300
commitffc5b700c417924a77797fc5e02c219f10d801be (patch)
treec78d0713ce2560241916e976a2edd72c6a24b12b /test/extras_test.py
parent2f3d8172c3fe80ea64ebe5c797835ca15c2e595f (diff)
extras test template added
Diffstat (limited to 'test/extras_test.py')
-rw-r--r--test/extras_test.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/extras_test.py b/test/extras_test.py
index e69de29b..2e1764d9 100644
--- a/test/extras_test.py
+++ b/test/extras_test.py
@@ -0,0 +1,29 @@
+import unittest
+import requests
+from gradio.processing_utils import encode_pil_to_base64
+from PIL import Image
+
+class TestExtrasWorking(unittest.TestCase):
+ def setUp(self):
+ self.url_img2img = "http://localhost:7860/sdapi/v1/extra-single-image"
+ self.simple_extras = {
+ "resize_mode": 0,
+ "show_extras_results": True,
+ "gfpgan_visibility": 0,
+ "codeformer_visibility": 0,
+ "codeformer_weight": 0,
+ "upscaling_resize": 2,
+ "upscaling_resize_w": 512,
+ "upscaling_resize_h": 512,
+ "upscaling_crop": True,
+ "upscaler_1": "None",
+ "upscaler_2": "None",
+ "extras_upscaler_2_visibility": 0,
+ "image": ""
+ }
+
+class TestExtrasCorrectness(unittest.TestCase):
+ pass
+
+if __name__ == "__main__":
+ unittest.main()