Skip to content

Commit f62010c

Browse files
gjtorikianclaude
andcommitted
chore(python): regenerate SDK with ignore-block and fixture fixes
Regenerated from updated oagen core (top-level @oagen-ignore replacement) and emitters (skip fixtures/tests for empty discriminated union models). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4138e96 commit f62010c

File tree

2 files changed

+1
-48
lines changed

2 files changed

+1
-48
lines changed

tests/test_events.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import pytest
55
from workos import WorkOS, AsyncWorkOS
6-
from tests.generated_helpers import load_fixture
76

87
from workos.events.models import EventsOrder
98
from workos._pagination import AsyncPage, SyncPage
@@ -17,18 +16,9 @@
1716

1817
class TestEvents:
1918
def test_list(self, workos, httpx_mock):
20-
httpx_mock.add_response(
21-
json=load_fixture("list_event.json"),
22-
)
23-
page = workos.events.list()
24-
assert isinstance(page, SyncPage)
25-
assert isinstance(page.data, list)
26-
27-
def test_list_empty_page(self, workos, httpx_mock):
2819
httpx_mock.add_response(json={"data": [], "list_metadata": {}})
2920
page = workos.events.list()
3021
assert isinstance(page, SyncPage)
31-
assert page.data == []
3222

3323
def test_list_encodes_query_params(self, workos, httpx_mock):
3424
httpx_mock.add_response(json={"data": [], "list_metadata": {}})
@@ -93,16 +83,9 @@ def test_list_server_error(self, httpx_mock):
9383
@pytest.mark.asyncio
9484
class TestAsyncEvents:
9585
async def test_list(self, async_workos, httpx_mock):
96-
httpx_mock.add_response(json=load_fixture("list_event.json"))
97-
page = await async_workos.events.list()
98-
assert isinstance(page, AsyncPage)
99-
assert isinstance(page.data, list)
100-
101-
async def test_list_empty_page(self, async_workos, httpx_mock):
10286
httpx_mock.add_response(json={"data": [], "list_metadata": {}})
10387
page = await async_workos.events.list()
10488
assert isinstance(page, AsyncPage)
105-
assert page.data == []
10689

10790
async def test_list_encodes_query_params(self, async_workos, httpx_mock):
10891
httpx_mock.add_response(json={"data": [], "list_metadata": {}})

tests/test_models_round_trip.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
DirectoryUserWithGroups,
5353
DirectoryUserWithGroupsEmail,
5454
)
55-
from workos.events.models import Event
5655
from workos.feature_flags.models import FeatureFlag, FeatureFlagOwner, Flag, FlagOwner
5756
from workos.multi_factor_auth.models import (
5857
AuthenticationFactor,
@@ -79,10 +78,7 @@
7978
)
8079
from workos.organizations.api_keys.models import ApiKeyWithValue, ApiKeyWithValueOwner
8180
from workos.permissions.models import AuthorizationPermission, Permission
82-
from workos.pipes.models import (
83-
DataIntegrationAccessTokenResponse,
84-
DataIntegrationAuthorizeUrlResponse,
85-
)
81+
from workos.pipes.models import DataIntegrationAuthorizeUrlResponse
8682
from workos.radar.models import (
8783
RadarListEntryAlreadyPresentResponse,
8884
RadarStandaloneResponse,
@@ -1710,19 +1706,6 @@ def test_user_preserves_nullable_fields(self):
17101706
assert serialized["last_sign_in_at"] is None
17111707
assert serialized["locale"] is None
17121708

1713-
def test_event_round_trip(self):
1714-
data = load_fixture("event.json")
1715-
instance = Event.from_dict(data)
1716-
serialized = instance.to_dict()
1717-
assert serialized == data
1718-
restored = Event.from_dict(serialized)
1719-
assert restored.to_dict() == serialized
1720-
1721-
def test_event_minimal_payload(self):
1722-
data = {}
1723-
instance = Event.from_dict(data)
1724-
assert instance.to_dict() is not None
1725-
17261709
def test_jwt_template_response_round_trip(self):
17271710
data = load_fixture("jwt_template_response.json")
17281711
instance = JWTTemplateResponse.from_dict(data)
@@ -2077,19 +2060,6 @@ def test_data_integration_authorize_url_response_minimal_payload(self):
20772060
serialized = instance.to_dict()
20782061
assert serialized["url"] == data["url"]
20792062

2080-
def test_data_integration_access_token_response_round_trip(self):
2081-
data = load_fixture("data_integration_access_token_response.json")
2082-
instance = DataIntegrationAccessTokenResponse.from_dict(data)
2083-
serialized = instance.to_dict()
2084-
assert serialized == data
2085-
restored = DataIntegrationAccessTokenResponse.from_dict(serialized)
2086-
assert restored.to_dict() == serialized
2087-
2088-
def test_data_integration_access_token_response_minimal_payload(self):
2089-
data = {}
2090-
instance = DataIntegrationAccessTokenResponse.from_dict(data)
2091-
assert instance.to_dict() is not None
2092-
20932063
def test_connected_account_round_trip(self):
20942064
data = load_fixture("connected_account.json")
20952065
instance = ConnectedAccount.from_dict(data)

0 commit comments

Comments
 (0)