Skip to content

Commit

Permalink
chore(tests): replace runaway models for tests (#3432)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Aug 30, 2024
1 parent 11d960b commit 69a3b22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/python/diffusers/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_load_model(self):
self.setUp()
with grpc.insecure_channel("localhost:50051") as channel:
stub = backend_pb2_grpc.BackendStub(channel)
response = stub.LoadModel(backend_pb2.ModelOptions(Model="runwayml/stable-diffusion-v1-5"))
response = stub.LoadModel(backend_pb2.ModelOptions(Model="Lykon/dreamshaper-8"))
self.assertTrue(response.success)
self.assertEqual(response.message, "Model loaded successfully")
except Exception as err:
Expand All @@ -71,7 +71,7 @@ def test(self):
self.setUp()
with grpc.insecure_channel("localhost:50051") as channel:
stub = backend_pb2_grpc.BackendStub(channel)
response = stub.LoadModel(backend_pb2.ModelOptions(Model="runwayml/stable-diffusion-v1-5"))
response = stub.LoadModel(backend_pb2.ModelOptions(Model="Lykon/dreamshaper-8"))
print(response.message)
self.assertTrue(response.success)
image_req = backend_pb2.GenerateImageRequest(positive_prompt="cat", width=16,height=16, dst="test.jpg")
Expand All @@ -81,4 +81,4 @@ def test(self):
print(err)
self.fail("Image gen service failed")
finally:
self.tearDown()
self.tearDown()

0 comments on commit 69a3b22

Please sign in to comment.