Skip to content

Commit 6db3017

Browse files
gjtorikianclaude
andcommitted
Fix delete test fixture args and use ApplicationType in mock fixture
- Pass None for response_dict and 202 for status_code in delete tests (previously 202 was incorrectly passed as response_dict) - Type application_type parameter as ApplicationType instead of str Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 12c3963 commit 6db3017

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/test_connect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def test_update_application(
184184
def test_delete_application(self, capture_and_mock_http_client_request):
185185
request_kwargs = capture_and_mock_http_client_request(
186186
self.http_client,
187+
None,
187188
202,
188189
headers={"content-type": "text/plain; charset=utf-8"},
189190
)
@@ -256,6 +257,7 @@ def test_list_client_secrets(
256257
def test_delete_client_secret(self, capture_and_mock_http_client_request):
257258
request_kwargs = capture_and_mock_http_client_request(
258259
self.http_client,
260+
None,
259261
202,
260262
headers={"content-type": "text/plain; charset=utf-8"},
261263
)

tests/utils/fixtures/mock_connect_application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import datetime
22

33
from workos.types.connect import ConnectApplication
4+
from workos.types.connect.connect_application import ApplicationType
45

56

67
class MockConnectApplication(ConnectApplication):
7-
def __init__(self, id: str, application_type: str = "m2m"):
8+
def __init__(self, id: str, application_type: ApplicationType = "m2m"):
89
now = datetime.datetime.now().isoformat()
910
kwargs = {
1011
"object": "connect_application",

0 commit comments

Comments
 (0)