fix lint issues across codebase

This commit is contained in:
Username
2025-12-20 17:20:27 +01:00
parent adbb5be5c0
commit 9da33f786e
6 changed files with 29 additions and 32 deletions

View File

@@ -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(
"/",