aboutsummaryrefslogtreecommitdiff
path: root/test/advanced_features/extras_test.py
blob: abdd5aa219d5a1619befcf8ad3df7ddf4c9cbc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import unittest


class TestExtrasWorking(unittest.TestCase):
    def setUp(self):
        self.url_img2img = "http://127.0.0.1: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()