|
3 | 3 |
|
4 | 4 | class UtilsTests(unittest.TestCase):
|
5 | 5 | def setUp(self):
|
6 |
| - self.url_options = "http://localhost:80/sdapi/v1/options" |
7 |
| - self.url_cmd_flags = "http://localhost:80/sdapi/v1/cmd-flags" |
8 |
| - self.url_samplers = "http://localhost:80/sdapi/v1/samplers" |
9 |
| - self.url_upscalers = "http://localhost:80/sdapi/v1/upscalers" |
10 |
| - self.url_sd_models = "http://localhost:80/sdapi/v1/sd-models" |
11 |
| - self.url_hypernetworks = "http://localhost:80/sdapi/v1/hypernetworks" |
12 |
| - self.url_face_restorers = "http://localhost:80/sdapi/v1/face-restorers" |
13 |
| - self.url_realesrgan_models = "http://localhost:80/sdapi/v1/realesrgan-models" |
14 |
| - self.url_prompt_styles = "http://localhost:80/sdapi/v1/prompt-styles" |
15 |
| - self.url_artist_categories = "http://localhost:80/sdapi/v1/artist-categories" |
16 |
| - self.url_artists = "http://localhost:80/sdapi/v1/artists" |
| 6 | + self.url_options = "http://localhost:7860/sdapi/v1/options" |
| 7 | + self.url_cmd_flags = "http://localhost:7860/sdapi/v1/cmd-flags" |
| 8 | + self.url_samplers = "http://localhost:7860/sdapi/v1/samplers" |
| 9 | + self.url_upscalers = "http://localhost:7860/sdapi/v1/upscalers" |
| 10 | + self.url_sd_models = "http://localhost:7860/sdapi/v1/sd-models" |
| 11 | + self.url_hypernetworks = "http://localhost:7860/sdapi/v1/hypernetworks" |
| 12 | + self.url_face_restorers = "http://localhost:7860/sdapi/v1/face-restorers" |
| 13 | + self.url_realesrgan_models = "http://localhost:7860/sdapi/v1/realesrgan-models" |
| 14 | + self.url_prompt_styles = "http://localhost:7860/sdapi/v1/prompt-styles" |
| 15 | + self.url_artist_categories = "http://localhost:7860/sdapi/v1/artist-categories" |
| 16 | + self.url_artists = "http://localhost:7860/sdapi/v1/artists" |
17 | 17 |
|
18 | 18 | def test_options_get(self):
|
19 | 19 | self.assertEqual(requests.get(self.url_options).status_code, 200)
|
|
0 commit comments