|
|
|
|
@ -3,17 +3,17 @@ import requests
|
|
|
|
|
|
|
|
|
|
class UtilsTests(unittest.TestCase):
|
|
|
|
|
def setUp(self):
|
|
|
|
|
self.url_options = "http://localhost:7860/sdapi/v1/options"
|
|
|
|
|
self.url_cmd_flags = "http://localhost:7860/sdapi/v1/cmd-flags"
|
|
|
|
|
self.url_samplers = "http://localhost:7860/sdapi/v1/samplers"
|
|
|
|
|
self.url_upscalers = "http://localhost:7860/sdapi/v1/upscalers"
|
|
|
|
|
self.url_sd_models = "http://localhost:7860/sdapi/v1/sd-models"
|
|
|
|
|
self.url_hypernetworks = "http://localhost:7860/sdapi/v1/hypernetworks"
|
|
|
|
|
self.url_face_restorers = "http://localhost:7860/sdapi/v1/face-restorers"
|
|
|
|
|
self.url_realesrgan_models = "http://localhost:7860/sdapi/v1/realesrgan-models"
|
|
|
|
|
self.url_prompt_styles = "http://localhost:7860/sdapi/v1/prompt-styles"
|
|
|
|
|
self.url_artist_categories = "http://localhost:7860/sdapi/v1/artist-categories"
|
|
|
|
|
self.url_artists = "http://localhost:7860/sdapi/v1/artists"
|
|
|
|
|
self.url_options = "http://127.0.0.1:7860/sdapi/v1/options"
|
|
|
|
|
self.url_cmd_flags = "http://127.0.0.1:7860/sdapi/v1/cmd-flags"
|
|
|
|
|
self.url_samplers = "http://127.0.0.1:7860/sdapi/v1/samplers"
|
|
|
|
|
self.url_upscalers = "http://127.0.0.1:7860/sdapi/v1/upscalers"
|
|
|
|
|
self.url_sd_models = "http://127.0.0.1:7860/sdapi/v1/sd-models"
|
|
|
|
|
self.url_hypernetworks = "http://127.0.0.1:7860/sdapi/v1/hypernetworks"
|
|
|
|
|
self.url_face_restorers = "http://127.0.0.1:7860/sdapi/v1/face-restorers"
|
|
|
|
|
self.url_realesrgan_models = "http://127.0.0.1:7860/sdapi/v1/realesrgan-models"
|
|
|
|
|
self.url_prompt_styles = "http://127.0.0.1:7860/sdapi/v1/prompt-styles"
|
|
|
|
|
self.url_artist_categories = "http://127.0.0.1:7860/sdapi/v1/artist-categories"
|
|
|
|
|
self.url_artists = "http://127.0.0.1:7860/sdapi/v1/artists"
|
|
|
|
|
|
|
|
|
|
def test_options_get(self):
|
|
|
|
|
self.assertEqual(requests.get(self.url_options).status_code, 200)
|
|
|
|
|
|