Skip to content

Add test for integrity and crossorigin attributes of CDN resources#394

Merged
greyli merged 2 commits intohelloflask:mainfrom
jazib:test/integrity-values
Jun 8, 2025
Merged

Add test for integrity and crossorigin attributes of CDN resources#394
greyli merged 2 commits intohelloflask:mainfrom
jazib:test/integrity-values

Conversation

@jazib
Copy link
Copy Markdown
Contributor

@jazib jazib commented May 17, 2025

This PR adds a test to verify that the expected integrity (SRI) and crossorigin attributes are correctly set on the Bootstrap CDN CSS and JS resources rendered by Bootstrap-Flask.

The test uses Flask’s test client and BeautifulSoup to parse the rendered HTML and asserts that the values match those defined in the extension.

Closes #333.

Comment thread requirements/tests.in
@jazib jazib requested a review from greyli June 7, 2025 21:26
@greyli greyli merged commit 7438946 into helloflask:main Jun 8, 2025
17 checks passed
@greyli
Copy link
Copy Markdown
Member

greyli commented Jun 8, 2025

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for integrity values

2 participants