Skip to content

Commit e4aadf2

Browse files
ddworkenclaude
andcommitted
Fix CI test in test_renderers.py to include integrity and crossorigin attributes
Update test template to match actual output which now includes SRI integrity attribute and crossorigin attribute for CDN script tags. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0c9e4df commit e4aadf2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ doc/check-or-enforce-order.py
6262

6363
tests/percy/*.html
6464
tests/percy/pandas2/*.html
65+
66+
**/.claude/settings.local.json

tests/test_io/test_renderers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_repr_html(renderer):
303303
"window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n "
304304
'<script charset="utf-8" src="'
305305
+ plotly_cdn_url()
306-
+ '"></script> '
306+
+ '" integrity="sha256-oy6Be7Eh6eiQFs5M7oXuPxxm9qbJXEtTpfSI93dW16Q=" crossorigin="anonymous"></script> '
307307
'<div id="cd462b94-79ce-42a2-887f-2650a761a144" class="plotly-graph-div" '
308308
'style="height:100%; width:100%;"></div> <script type="text/javascript">'
309309
" window.PLOTLYENV=window.PLOTLYENV || {};"

0 commit comments

Comments
 (0)