aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTaithrah <Taithrah@users.noreply.github.com>2023-01-08 20:58:53 +0000
committerGitHub <noreply@github.com>2023-01-08 20:58:53 +0000
commite9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf (patch)
tree2373cae4f4e4af72ed170647bf393015075791cc /test
parent8a27730da5d5b25e28370e8ad94844856a839af9 (diff)
parent8850fc23b6e8a8e210bdfe4aade81516fb5770f3 (diff)
downloadstable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.tar.gz
stable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.tar.bz2
stable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.zip
Merge branch 'AUTOMATIC1111:master' into small-touch-up
Diffstat (limited to 'test')
-rw-r--r--test/basic_features/img2img_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/basic_features/img2img_test.py b/test/basic_features/img2img_test.py
index 0a9c1e8a..bd520b13 100644
--- a/test/basic_features/img2img_test.py
+++ b/test/basic_features/img2img_test.py
@@ -50,6 +50,12 @@ class TestImg2ImgWorking(unittest.TestCase):
self.simple_img2img["mask"] = encode_pil_to_base64(Image.open(r"test/test_files/mask_basic.png"))
self.assertEqual(requests.post(self.url_img2img, json=self.simple_img2img).status_code, 200)
+ def test_img2img_sd_upscale_performed(self):
+ self.simple_img2img["script_name"] = "sd upscale"
+ self.simple_img2img["script_args"] = ["", 8, "Lanczos", 2.0]
+
+ self.assertEqual(requests.post(self.url_img2img, json=self.simple_img2img).status_code, 200)
+
if __name__ == "__main__":
unittest.main()