aboutsummaryrefslogtreecommitdiff
path: root/test/extras_test.py
diff options
context:
space:
mode:
authorRoy Shilkrot <roy.shil@gmail.com>2022-10-31 11:45:52 -0400
committerRoy Shilkrot <roy.shil@gmail.com>2022-10-31 11:45:52 -0400
commit509fd1459bacfe0dcde1e5792ea3e046aa9f4d24 (patch)
treeeaecb0351d6a95e4c29eaebdcb8b304990fd3a91 /test/extras_test.py
parentbdc90837987ed8919dd611fd01553b0c170ded5c (diff)
parentdc7425a56e7a014cbfa3b3d44ad2321e519fe378 (diff)
Merge remote-tracking branch 'upstream/master' into roy.add_simple_interrogate_api
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()