mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 16:32:15 +00:00
Fix for new django
This commit is contained in:
@@ -284,11 +284,11 @@ def test_xframe_headers(admin_client, basic_event):
|
|||||||
|
|
||||||
response = admin_client.get(event_url, follow=True)
|
response = admin_client.get(event_url, follow=True)
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
response._headers["X-Frame-Options"]
|
response.headers["X-Frame-Options"]
|
||||||
|
|
||||||
response = admin_client.get(login_url, follow=True)
|
response = admin_client.get(login_url, follow=True)
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
response._headers["X-Frame-Options"]
|
response.headers["X-Frame-Options"]
|
||||||
|
|
||||||
|
|
||||||
def test_oembed(client, basic_event):
|
def test_oembed(client, basic_event):
|
||||||
|
|||||||
@@ -64,11 +64,11 @@ def test_x_frame_headers(client, django_user_model, test_asset):
|
|||||||
|
|
||||||
response = client.get(asset_url, follow=True)
|
response = client.get(asset_url, follow=True)
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
response._headers["X-Frame-Options"]
|
response.headers["X-Frame-Options"]
|
||||||
|
|
||||||
response = client.get(login_url, follow=True)
|
response = client.get(login_url, follow=True)
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
response._headers["X-Frame-Options"]
|
response.headers["X-Frame-Options"]
|
||||||
|
|
||||||
|
|
||||||
def test_oembed(client, test_asset):
|
def test_oembed(client, test_asset):
|
||||||
|
|||||||
Reference in New Issue
Block a user