mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 06:10:15 +08:00
Fix inference tests
This commit is contained in:
parent
8be5134f4c
commit
9dc11b9933
@ -175,12 +175,11 @@ class TestInference:
|
|||||||
#
|
#
|
||||||
# Returns a "_client_graph", which is client-graph pair corresponding to an initialized server
|
# Returns a "_client_graph", which is client-graph pair corresponding to an initialized server
|
||||||
# The "graph" is the default graph
|
# The "graph" is the default graph
|
||||||
@fixture(scope="class", params=comfy_graph_list, ids=comfy_graph_ids, autouse=False)
|
@fixture(scope="function", params=comfy_graph_list, ids=comfy_graph_ids, autouse=False)
|
||||||
def _client_graph(self, request, args_pytest, comfy_background_server) -> (ComfyClient, ComfyGraph):
|
def _client_graph(self, request, comfy_background_server) -> (ComfyClient, ComfyGraph):
|
||||||
comfy_graph = request.param
|
comfy_graph = request.param
|
||||||
|
|
||||||
# Start client
|
# Start client
|
||||||
comfy_client = self.start_client(args_pytest["listen"], args_pytest["port"])
|
comfy_client = self.start_client(comfy_background_server.listen, comfy_background_server.port)
|
||||||
|
|
||||||
# Warm up pipeline
|
# Warm up pipeline
|
||||||
comfy_client.get_images(graph=comfy_graph.graph, save=False)
|
comfy_client.get_images(graph=comfy_graph.graph, save=False)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user