pytest-clerk 4.0.4__tar.gz → 4.0.5__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.
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/PKG-INFO +1 -1
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/pyproject.toml +1 -1
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/pytest_clerk/clerk.py +12 -2
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/LICENSE +0 -0
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/README.md +0 -0
- {pytest_clerk-4.0.4 → pytest_clerk-4.0.5}/pytest_clerk/__init__.py +0 -0
|
@@ -291,9 +291,14 @@ def clerk_delete_org(clerk_backend_httpx_client):
|
|
|
291
291
|
The API documentation for this call can be found below:
|
|
292
292
|
https://clerk.com/docs/reference/backend-api/tag/Organizations#operation/DeleteOrganization
|
|
293
293
|
"""
|
|
294
|
-
|
|
294
|
+
result = clerk_backend_httpx_client.delete(
|
|
295
295
|
url=f"/organizations/{org_id}", **kwargs
|
|
296
296
|
)
|
|
297
|
+
# Ignore 404 errors indicating it was already deleted. Raise other errors.
|
|
298
|
+
if result.status_code != httpx.codes.NOT_FOUND:
|
|
299
|
+
result.raise_for_status()
|
|
300
|
+
|
|
301
|
+
return result
|
|
297
302
|
|
|
298
303
|
return _inner
|
|
299
304
|
|
|
@@ -427,7 +432,12 @@ def clerk_delete_user(clerk_backend_httpx_client):
|
|
|
427
432
|
The API documentation for this call can be found below:
|
|
428
433
|
https://clerk.com/docs/reference/backend-api/tag/Users#operation/DeleteUser
|
|
429
434
|
"""
|
|
430
|
-
|
|
435
|
+
result = clerk_backend_httpx_client.delete(url=f"/users/{user_id}", **kwargs)
|
|
436
|
+
# Ignore 404 errors indicating it was already deleted. Raise other errors.
|
|
437
|
+
if result.status_code != httpx.codes.NOT_FOUND:
|
|
438
|
+
result.raise_for_status()
|
|
439
|
+
|
|
440
|
+
return result
|
|
431
441
|
|
|
432
442
|
return _inner
|
|
433
443
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|