We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3ddef commit 48460cdCopy full SHA for 48460cd
tests/test_user_management_revoke_session.py
@@ -6,24 +6,6 @@
6
from workos.user_management import AsyncUserManagement, UserManagement
7
8
9
-def _mock_session(id: str):
10
- now = "2025-07-23T14:00:00.000Z"
11
- return {
12
- "object": "session",
13
- "id": id,
14
- "user_id": "user_123",
15
- "organization_id": "org_123",
16
- "status": "revoked",
17
- "auth_method": "password",
18
- "ip_address": "192.168.1.1",
19
- "user_agent": "Mozilla/5.0",
20
- "expires_at": "2025-07-23T15:00:00.000Z",
21
- "ended_at": now,
22
- "created_at": now,
23
- "updated_at": now,
24
- }
25
-
26
27
@pytest.mark.sync_and_async(UserManagement, AsyncUserManagement)
28
class TestUserManagementRevokeSession:
29
@pytest.fixture(autouse=True)
0 commit comments