Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit513b223

Browse files
fix(test): fix test_graph_subgraph_t2i
needed to be updated after adding the nsfw checker node to the graph
1 parentdb05445 commit513b223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tests/nodes/test_node_graph.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,16 +462,16 @@ def test_graph_subgraph_t2i():
462462

463463
n4=ShowImageInvocation(id="4")
464464
g.add_node(n4)
465-
g.add_edge(create_edge("1.7","image","4","image"))
465+
g.add_edge(create_edge("1.8","image","4","image"))
466466

467467
# Validate
468468
dg=g.nx_graph_flat()
469-
assertset(dg.nodes)==set(['1.width','1.height','1.seed','1.3','1.4','1.5','1.6','1.7','2','3','4'])
469+
assertset(dg.nodes)==set(['1.width','1.height','1.seed','1.3','1.4','1.5','1.6','1.7','1.8','2','3','4'])
470470
expected_edges= [(f'1.{e.source.node_id}',f'1.{e.destination.node_id}')foreinlg.graph.edges]
471471
expected_edges.extend([
472472
('2','1.width'),
473473
('3','1.height'),
474-
('1.7','4')
474+
('1.8','4')
475475
])
476476
print(expected_edges)
477477
print(list(dg.edges))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp