mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-15 03:00:57 -07:00
add more tests
This commit is contained in:
parent
7d2bb86cce
commit
00005ac9af
4 changed files with 49 additions and 9 deletions
|
|
@ -14,6 +14,7 @@ class UtilsTests(unittest.TestCase):
|
|||
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_embeddings = "http://localhost:7860/sdapi/v1/embeddings"
|
||||
|
||||
def test_options_get(self):
|
||||
self.assertEqual(requests.get(self.url_options).status_code, 200)
|
||||
|
|
@ -62,6 +63,8 @@ class UtilsTests(unittest.TestCase):
|
|||
def test_artists(self):
|
||||
self.assertEqual(requests.get(self.url_artists).status_code, 200)
|
||||
|
||||
def test_embeddings(self):
|
||||
self.assertEqual(requests.get(self.url_artists).status_code, 200)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue