You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hamilton.apache.org by sk...@apache.org on 2026/01/24 21:11:30 UTC
(hamilton) 02/07: Updates the assertion in the graph visualization test to ensure that special characters are properly escaped in the label.
This is an automated email from the ASF dual-hosted git repository.
skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git
commit c607262ee6b59fc587194be81cfff7724983bf68
Author: Pablo Eduardo Diaz <pa...@gmail.com>
AuthorDate: Fri Jan 16 23:45:23 2026 -0400
Updates the assertion in the graph visualization test to ensure that special characters are properly escaped in the label.
---
tests/resources/display_name_functions.py | 2 +-
tests/test_graph.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/resources/display_name_functions.py b/tests/resources/display_name_functions.py
index 4c69bb14..032b5f99 100644
--- a/tests/resources/display_name_functions.py
+++ b/tests/resources/display_name_functions.py
@@ -34,7 +34,7 @@ def node_with_display_name(input_a: int) -> int:
return input_a + 1
-@tag(display_name="Special <Characters> & \"Quotes\"")
+@tag(display_name='Special <Characters> & "Quotes"')
def node_with_special_chars(input_a: int) -> int:
"""A node with special HTML characters that need escaping."""
return input_a * 2
diff --git a/tests/test_graph.py b/tests/test_graph.py
index 6d1b4483..600d9956 100644
--- a/tests/test_graph.py
+++ b/tests/test_graph.py
@@ -1370,7 +1370,7 @@ def test_create_graphviz_graph_display_name_html_escaping():
# The raw special characters should NOT appear unescaped in the label
# (they would break graphviz HTML parsing)
- assert 'label=<<b>Special <Characters>' not in dot_string
+ assert "label=<<b>Special <Characters>" not in dot_string
def test_create_graphviz_graph_without_display_name_backward_compatible():