Fix for new django

This commit is contained in:
2022-01-04 20:31:22 +00:00
parent f333aa2c18
commit b8dc56d129
2 changed files with 4 additions and 4 deletions

View File

@@ -284,11 +284,11 @@ def test_xframe_headers(admin_client, basic_event):
response = admin_client.get(event_url, follow=True)
with pytest.raises(KeyError):
response._headers["X-Frame-Options"]
response.headers["X-Frame-Options"]
response = admin_client.get(login_url, follow=True)
with pytest.raises(KeyError):
response._headers["X-Frame-Options"]
response.headers["X-Frame-Options"]
def test_oembed(client, basic_event):