mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 15:28:28 +01:00
dag: fix dot file rendering order.
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
b8d738220d
commit
a3261637de
@@ -23,6 +23,7 @@ def _show_dot(G):
|
||||
|
||||
from networkx.drawing.nx_pydot import write_dot
|
||||
|
||||
G = G.reverse()
|
||||
dot_file = io.StringIO()
|
||||
write_dot(G, dot_file)
|
||||
return dot_file.getvalue()
|
||||
|
||||
@@ -143,12 +143,12 @@ def test_show_dot(repo):
|
||||
"stage;\n"
|
||||
"stage;\n"
|
||||
"stage;\n"
|
||||
"\"stage: '1'\" -> \"stage: 'a.dvc'\";\n"
|
||||
"\"stage: '2'\" -> \"stage: 'b.dvc'\";\n"
|
||||
"\"stage: '3'\" -> \"stage: 'a.dvc'\";\n"
|
||||
"\"stage: '3'\" -> \"stage: 'b.dvc'\";\n"
|
||||
"\"stage: '4'\" -> \"stage: 'a.dvc'\";\n"
|
||||
"\"stage: '4'\" -> \"stage: '3'\";\n"
|
||||
"\"stage: 'b.dvc'\" -> \"stage: '2'\";\n"
|
||||
"\"stage: 'b.dvc'\" -> \"stage: '3'\";\n"
|
||||
"\"stage: 'a.dvc'\" -> \"stage: '1'\";\n"
|
||||
"\"stage: 'a.dvc'\" -> \"stage: '3'\";\n"
|
||||
"\"stage: 'a.dvc'\" -> \"stage: '4'\";\n"
|
||||
"\"stage: '3'\" -> \"stage: '4'\";\n"
|
||||
"}\n"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user