Skip to content

Commit

Permalink
Add test for response header (#1058)
Browse files Browse the repository at this point in the history
Follow up from: #1055
  • Loading branch information
dwreeves authored Jun 20, 2024
1 parent 10471cd commit 47613f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/plugin/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def test_dbt_docs_artifact(mock_open_file, monkeypatch, app, artifact):
assert response.status_code == 200
if artifact == "dbt_docs_index.html":
assert iframe_script in _get_text_from_response(response)
assert "Content-Security-Policy" in response.headers
assert response.headers["Content-Security-Policy"] == "frame-ancestors 'self'"


@pytest.mark.integration
Expand Down

0 comments on commit 47613f4

Please sign in to comment.