aboutsummaryrefslogtreecommitdiff
path: root/test/extras_test.py
diff options
context:
space:
mode:
authorrandom-thoughtss <116161560+random-thoughtss@users.noreply.github.com>2022-10-30 00:30:18 -0700
committerGitHub <noreply@github.com>2022-10-30 00:30:18 -0700
commit15468c993974ed30fb204792c9598dfa62088bbb (patch)
tree313bbeb9d55c752cacfaa08b769c873c3566ebaf /test/extras_test.py
parent39f55c3c35873bc7dd9792cb2155746a1c3d4292 (diff)
parent17a2076f72562b428052ee3fc8c43d19c03ecd1e (diff)
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()