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