Skip to content

Commit 798909a

Browse files
committed
fix(plot.tx): link-url were stuck in the old form
1 parent 2870416 commit 798909a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_plot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ def test_node_dot_str0(dot_str_pipeline):
448448
def test_node_dot_str1(dot_str_pipeline, monkeypatch):
449449
style = get_installed_plotter().style
450450
monkeypatch.setattr(style, "py_item_url_format", "abc#%s")
451-
monkeypatch.setattr(style, "op_link_target", {"target": "_self"})
452-
monkeypatch.setattr(style, "fn_link_target", {"target": "bad"})
451+
monkeypatch.setattr(style, "op_link_target", "_self")
452+
monkeypatch.setattr(style, "fn_link_target", "bad")
453453

454454
dot_str = str(dot_str_pipeline.plot())
455455
print(dot_str)
@@ -461,16 +461,16 @@ def test_node_dot_str1(dot_str_pipeline, monkeypatch):
461461
<edge> [shape=rect];
462462
<digraph&#58; strict> [shape=rect];
463463
<node> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
464-
><TR><TD BORDER="1" SIDES="b" TOOLTIP="FunctionalOperation(name=&#x27;node&#x27;, needs=[&#x27;edge&#x27;, &#x27;digraph: strict&#x27;], provides=[&#x27;&lt;graph&gt;&#x27;], fn=&#x27;add&#x27;)" HREF="abc#{&#x27;dot_path&#x27;: &#x27;_operator.add&#x27;, &#x27;posix_path&#x27;: &#x27;_operator/add&#x27;}" TARGET="{&#x27;target&#x27;: &#x27;bad&#x27;}"
464+
><TR><TD BORDER="1" SIDES="b" TOOLTIP="FunctionalOperation(name=&#x27;node&#x27;, needs=[&#x27;edge&#x27;, &#x27;digraph: strict&#x27;], provides=[&#x27;&lt;graph&gt;&#x27;], fn=&#x27;add&#x27;)" HREF="abc#{&#x27;dot_path&#x27;: &#x27;_operator.add&#x27;, &#x27;posix_path&#x27;: &#x27;_operator/add&#x27;}" TARGET="bad"
465465
><B>OP:</B> <I>node</I></TD></TR
466-
><TR><TD TOOLTIP="&lt;built-in function add&gt;" HREF="abc#{&#x27;dot_path&#x27;: &#x27;_operator.add&#x27;, &#x27;posix_path&#x27;: &#x27;_operator/add&#x27;}" TARGET="{&#x27;target&#x27;: &#x27;bad&#x27;}"
466+
><TR><TD TOOLTIP="&lt;built-in function add&gt;" HREF="abc#{&#x27;dot_path&#x27;: &#x27;_operator.add&#x27;, &#x27;posix_path&#x27;: &#x27;_operator/add&#x27;}" TARGET="bad"
467467
><B>FN:</B> _operator.add</TD></TR>
468468
</TABLE>>, shape=plain, tooltip=<node>];
469469
<&lt;graph&gt;> [shape=rect];
470470
<cu&#58;sto&#58;m> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
471-
><TR><TD BORDER="1" SIDES="b" TOOLTIP="FunctionalOperation(name=&#x27;cu:sto:m&#x27;, needs=[&#x27;edge&#x27;, &#x27;digraph: strict&#x27;], provides=[&#x27;&lt;graph&gt;&#x27;], fn=&#x27;func&#x27;)" HREF="abc#{&#x27;dot_path&#x27;: &#x27;test.test_plot.func&#x27;, &#x27;posix_path&#x27;: &#x27;test/test_plot/func&#x27;}" TARGET="{&#x27;target&#x27;: &#x27;bad&#x27;}"
471+
><TR><TD BORDER="1" SIDES="b" TOOLTIP="FunctionalOperation(name=&#x27;cu:sto:m&#x27;, needs=[&#x27;edge&#x27;, &#x27;digraph: strict&#x27;], provides=[&#x27;&lt;graph&gt;&#x27;], fn=&#x27;func&#x27;)" HREF="abc#{&#x27;dot_path&#x27;: &#x27;test.test_plot.func&#x27;, &#x27;posix_path&#x27;: &#x27;test/test_plot/func&#x27;}" TARGET="bad"
472472
><B>OP:</B> <I>cu:sto:m</I></TD></TR
473-
><TR><TD TOOLTIP="def func():&#10; pass" HREF="abc#{&#x27;dot_path&#x27;: &#x27;test.test_plot.func&#x27;, &#x27;posix_path&#x27;: &#x27;test/test_plot/func&#x27;}" TARGET="{&#x27;target&#x27;: &#x27;bad&#x27;}"
473+
><TR><TD TOOLTIP="def func():&#10; pass" HREF="abc#{&#x27;dot_path&#x27;: &#x27;test.test_plot.func&#x27;, &#x27;posix_path&#x27;: &#x27;test/test_plot/func&#x27;}" TARGET="bad"
474474
><B>FN:</B> test.test_plot.func</TD></TR>
475475
</TABLE>>, shape=plain, tooltip=<cu:sto:m>];
476476
<edge> -> <node>;

0 commit comments

Comments
 (0)