Skip to content

Commit f5760b5

Browse files
committed
fix: restore accidentally deleted line
1 parent 8d551a4 commit f5760b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pytest/test_toast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def test_toast_tagify_generates_id():
223223
# (The ID generation only happens in as_payload())
224224
tag = t.tagify()
225225
html_str = str(tag)
226+
# Verify an auto-generated ID is present
227+
assert re.search(r'id="bslib-toast-[0-9a-f]+"', html_str)
226228

227229
# When tagify() is called with an explicit ID parameter, it should use it
228230
tag_with_id = t.tagify(id="test-id")

0 commit comments

Comments
 (0)