We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2751759 commit c109ad2Copy full SHA for c109ad2
python/tests/test_dataframe.py
@@ -63,6 +63,19 @@ def span_expandable_class():
63
64
65
def normalize_uuid(html):
66
+ """
67
+ Normalize UUIDs in HTML content by replacing them with a static string.
68
+
69
+ This is used in testing to ensure consistent output when comparing HTML
70
+ representations that contain randomly generated UUIDs (like element IDs),
71
+ allowing for meaningful comparison of structure and content.
72
73
+ Args:
74
+ html: HTML string possibly containing UUIDs
75
76
+ Returns:
77
+ HTML string with all UUIDs replaced by "STATIC_UUID"
78
79
return re.sub(
80
r"[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
81
"STATIC_UUID",
0 commit comments