Fix inference test setup bug

This commit is contained in:
doctorpangloss 2024-06-14 15:09:53 -07:00
parent 9dc11b9933
commit 0ace50c068

View File

@ -177,9 +177,10 @@ class TestInference:
# The "graph" is the default graph
@fixture(scope="function", params=comfy_graph_list, ids=comfy_graph_ids, autouse=False)
def _client_graph(self, request, comfy_background_server) -> (ComfyClient, ComfyGraph):
configuration, _ = comfy_background_server
comfy_graph = request.param
# Start client
comfy_client = self.start_client(comfy_background_server.listen, comfy_background_server.port)
comfy_client = self.start_client(configuration.listen, configuration.port)
# Warm up pipeline
comfy_client.get_images(graph=comfy_graph.graph, save=False)