Reindent utils_test with 4 spaces
This commit is contained in:
parent
098d2fda52
commit
431bc5a297
|
@ -1,6 +1,7 @@
|
|||
import unittest
|
||||
import requests
|
||||
|
||||
|
||||
class UtilsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.url_options = "http://localhost:7860/sdapi/v1/options"
|
||||
|
@ -23,7 +24,7 @@ class UtilsTests(unittest.TestCase):
|
|||
|
||||
pre_value = response.json()["send_seed"]
|
||||
|
||||
self.assertEqual(requests.post(self.url_options, json={"send_seed":not pre_value}).status_code, 200)
|
||||
self.assertEqual(requests.post(self.url_options, json={"send_seed": not pre_value}).status_code, 200)
|
||||
|
||||
response = requests.get(self.url_options)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
@ -58,5 +59,6 @@ class UtilsTests(unittest.TestCase):
|
|||
def test_embeddings(self):
|
||||
self.assertEqual(requests.get(self.url_embeddings).status_code, 200)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue