aboutsummaryrefslogtreecommitdiffstats
path: root/test/extras_test.py
diff options
context:
space:
mode:
authorFampai <>2022-10-31 13:54:51 +0000
committerFampai <>2022-10-31 13:54:51 +0000
commit3b0127e698a2eeb913437bce0b25b478fb06ff11 (patch)
treee0894e49eb0d7609b12d4e4f3a71fd979830b29c /test/extras_test.py
parent006756f9cd6258eae418e9209cfc13f940ec53e1 (diff)
parent9b384dfb5c05129f50cc3f0262f89e8b788e5cf3 (diff)
downloadstable-diffusion-webui-gfx803-3b0127e698a2eeb913437bce0b25b478fb06ff11.tar.gz
stable-diffusion-webui-gfx803-3b0127e698a2eeb913437bce0b25b478fb06ff11.tar.bz2
stable-diffusion-webui-gfx803-3b0127e698a2eeb913437bce0b25b478fb06ff11.zip
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui into TI_optimizations
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
new file mode 100644
index 00000000..9b8ce0f0
--- /dev/null
+++ b/test/extras_test.py
@@ -0,0 +1,29 @@
+import unittest
+
+
+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()