|
52 | 52 | DirectoryUserWithGroups, |
53 | 53 | DirectoryUserWithGroupsEmail, |
54 | 54 | ) |
55 | | -from workos.events.models import Event |
56 | 55 | from workos.feature_flags.models import FeatureFlag, FeatureFlagOwner, Flag, FlagOwner |
57 | 56 | from workos.multi_factor_auth.models import ( |
58 | 57 | AuthenticationFactor, |
|
79 | 78 | ) |
80 | 79 | from workos.organizations.api_keys.models import ApiKeyWithValue, ApiKeyWithValueOwner |
81 | 80 | 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 |
86 | 82 | from workos.radar.models import ( |
87 | 83 | RadarListEntryAlreadyPresentResponse, |
88 | 84 | RadarStandaloneResponse, |
@@ -1710,19 +1706,6 @@ def test_user_preserves_nullable_fields(self): |
1710 | 1706 | assert serialized["last_sign_in_at"] is None |
1711 | 1707 | assert serialized["locale"] is None |
1712 | 1708 |
|
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 | | - |
1726 | 1709 | def test_jwt_template_response_round_trip(self): |
1727 | 1710 | data = load_fixture("jwt_template_response.json") |
1728 | 1711 | instance = JWTTemplateResponse.from_dict(data) |
@@ -2077,19 +2060,6 @@ def test_data_integration_authorize_url_response_minimal_payload(self): |
2077 | 2060 | serialized = instance.to_dict() |
2078 | 2061 | assert serialized["url"] == data["url"] |
2079 | 2062 |
|
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 | | - |
2093 | 2063 | def test_connected_account_round_trip(self): |
2094 | 2064 | data = load_fixture("connected_account.json") |
2095 | 2065 | instance = ConnectedAccount.from_dict(data) |
|
0 commit comments