diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-27 13:40:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 13:40:26 +0000 |
commit | 8c8ad93bb5f01341513ce4b694f02d650edf0e80 (patch) | |
tree | f406e43d45b4c83860a39d5c2f6382772699f4bd /test/advanced_features/extras_test.py | |
parent | b24aed0b69e55285e9f0dcc4495d1b22e96ee1dc (diff) | |
parent | 14dfede8ddbf6b82bb290d5c4292d52b6b68e3ca (diff) | |
download | stable-diffusion-webui-gfx803-8c8ad93bb5f01341513ce4b694f02d650edf0e80.tar.gz stable-diffusion-webui-gfx803-8c8ad93bb5f01341513ce4b694f02d650edf0e80.tar.bz2 stable-diffusion-webui-gfx803-8c8ad93bb5f01341513ce4b694f02d650edf0e80.zip |
Merge pull request #4635 from mezotaken/master
CI tests with github-actions and some improvements to testing
Diffstat (limited to 'test/advanced_features/extras_test.py')
-rw-r--r-- | test/advanced_features/extras_test.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/advanced_features/extras_test.py b/test/advanced_features/extras_test.py new file mode 100644 index 00000000..8763f8ed --- /dev/null +++ b/test/advanced_features/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": 128, + "upscaling_resize_h": 128, + "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() |