allowly 0.3.1__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {allowly-0.3.1 → allowly-0.4.0}/PKG-INFO +2 -2
- {allowly-0.3.1 → allowly-0.4.0}/allowly/client.py +0 -3
- {allowly-0.3.1 → allowly-0.4.0}/pyproject.toml +1 -1
- {allowly-0.3.1 → allowly-0.4.0}/tests/test_client.py +3 -12
- {allowly-0.3.1 → allowly-0.4.0}/uv.lock +1 -1
- {allowly-0.3.1 → allowly-0.4.0}/.github/workflows/publish.yml +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/.github/workflows/verify.yml +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/.gitignore +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/LICENSE +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/README.md +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/__init__.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/error.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/identifiers.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/mcp.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/types.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/allowly/verify.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/tests/test_identifiers.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/tests/test_mcp.py +0 -0
- {allowly-0.3.1 → allowly-0.4.0}/tests/test_verify.py +0 -0
|
@@ -377,15 +377,12 @@ class _AuthorizationsResource:
|
|
|
377
377
|
authorization_id: str,
|
|
378
378
|
*,
|
|
379
379
|
revoked_by: str | None = None,
|
|
380
|
-
superseded_by: str | None = None,
|
|
381
380
|
notes: str | None = None,
|
|
382
381
|
idempotency_key: str | None = None,
|
|
383
382
|
) -> AuthorizationRevokeResponse:
|
|
384
383
|
body: dict[str, Any] = {}
|
|
385
384
|
if revoked_by:
|
|
386
385
|
body["revoked_by"] = revoked_by
|
|
387
|
-
if superseded_by:
|
|
388
|
-
body["superseded_by"] = superseded_by
|
|
389
386
|
if notes:
|
|
390
387
|
body["notes"] = notes
|
|
391
388
|
headers = {"Idempotency-Key": idempotency_key} if idempotency_key is not None else None
|
|
@@ -1295,18 +1295,9 @@ async def test_authorizations_revoke_requires_revoked_confirmations(client):
|
|
|
1295
1295
|
await client.authorizations.revoke("auth_123")
|
|
1296
1296
|
|
|
1297
1297
|
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
route = respx.delete(f"{BASE}/v1/authorizations/auth_123").mock(return_value=httpx.Response(200, json={
|
|
1302
|
-
"authorization_id": "auth_123",
|
|
1303
|
-
"revoked_at": "2026-05-01T09:00:00Z",
|
|
1304
|
-
"receipt": PENDING_RECEIPT,
|
|
1305
|
-
"revoked_confirmations": [],
|
|
1306
|
-
}))
|
|
1307
|
-
await client.authorizations.revoke("auth_123", superseded_by="auth_456")
|
|
1308
|
-
body = json.loads(route.calls[0].request.content)
|
|
1309
|
-
assert body["superseded_by"] == "auth_456"
|
|
1298
|
+
def test_authorizations_revoke_rejects_superseded_by(client):
|
|
1299
|
+
with pytest.raises(TypeError, match="unexpected keyword argument 'superseded_by'"):
|
|
1300
|
+
client.authorizations.revoke("auth_123", superseded_by="auth_456")
|
|
1310
1301
|
|
|
1311
1302
|
|
|
1312
1303
|
@respx.mock
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|