aboutsummaryrefslogtreecommitdiffstats
path: root/test/extras_test.py
diff options
context:
space:
mode:
authorSihan Wang <31711261+shwang95@users.noreply.github.com>2022-11-02 06:09:33 +0000
committerGitHub <noreply@github.com>2022-11-02 06:09:33 +0000
commit5c864be010b42373e51eac4c6869d561adca4202 (patch)
tree1de5f558ab056bc766ac51d3612356f0de52b1f8 /test/extras_test.py
parent7bd8581e461623932ffbd5762ee931ee51f798db (diff)
parent65522ff157e4be4095a99421da04ecb0749824ac (diff)
downloadstable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.gz
stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.bz2
stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.zip
Merge branch 'AUTOMATIC1111:master' into master
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()