fix lint issues across codebase
This commit is contained in:
@@ -104,6 +104,7 @@ class TestProxyTrustValidation:
|
||||
)
|
||||
assert response.status_code == 201
|
||||
import json
|
||||
|
||||
data = json.loads(response.data)
|
||||
assert "owner" in data
|
||||
|
||||
@@ -124,6 +125,7 @@ class TestProxyTrustValidation:
|
||||
)
|
||||
assert response.status_code == 201
|
||||
import json
|
||||
|
||||
data = json.loads(response.data)
|
||||
# Owner should NOT be set because proxy wasn't trusted
|
||||
assert "owner" not in data
|
||||
@@ -148,6 +150,7 @@ class TestProxyTrustValidation:
|
||||
)
|
||||
assert response.status_code == 201
|
||||
import json
|
||||
|
||||
data = json.loads(response.data)
|
||||
assert "owner" in data
|
||||
finally:
|
||||
@@ -259,9 +262,7 @@ class TestSizeLimits:
|
||||
class TestOwnershipEnforcement:
|
||||
"""Tests for paste ownership and access control."""
|
||||
|
||||
def test_cannot_delete_others_paste(
|
||||
self, client, sample_text, auth_header, other_auth_header
|
||||
):
|
||||
def test_cannot_delete_others_paste(self, client, sample_text, auth_header, other_auth_header):
|
||||
"""Users cannot delete pastes they don't own."""
|
||||
create = client.post(
|
||||
"/",
|
||||
|
||||
Reference in New Issue
Block a user