Skip to content

Commit d1dac3e

Browse files
remove version constraint
1 parent 42867da commit d1dac3e

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

integration/tests/posit/connect/oauth/test_associations.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ def test_find_update_by_content(self):
124124
assert len(no_associations) == 0
125125

126126
def test_find_update_by_content_multiple(self):
127-
associations = self.content.oauth.associations.find()
128-
assert len(associations) == 1
129-
assert associations[0]["app_guid"] == self.content["guid"]
130-
assert associations[0]["oauth_integration_guid"] == self.integration["guid"]
131-
132-
# update to have multiple associations
133127
self.content.oauth.associations.update(
134128
[
135129
self.integration["guid"],

integration/tests/posit/connect/oauth/test_integrations.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ def test_find(self):
6060
assert results[0] == self.integration
6161
assert results[1] == self.another_integration
6262

63+
def test_find_by(self):
64+
result = self.client.oauth.integrations.find_by(
65+
integration_type="custom",
66+
auth_type="Confidential",
67+
name="example integration",
68+
)
69+
assert result is not None
70+
assert result["guid"] == self.integration["guid"]
71+
72+
result = self.client.oauth.integrations.find_by(
73+
integration_type="custom",
74+
auth_type="Confidential",
75+
name="nonexistent integration",
76+
)
77+
assert result is None
78+
6379
def test_create_update_delete(self):
6480
# create a new integration
6581

src/posit/connect/oauth/associations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from typing_extensions import TYPE_CHECKING, List, Optional
88

9-
from ..context import requires
109
from ..resources import BaseResource, Resources, _matches_exact, _matches_pattern
1110

1211
if TYPE_CHECKING:
@@ -67,7 +66,6 @@ def find(self) -> List[Association]:
6766
for result in response.json()
6867
]
6968

70-
@requires("2025.07.0-dev")
7169
def find_by(
7270
self,
7371
integration_type: Optional[types.OAuthIntegrationType | str] = None,

src/posit/connect/oauth/integrations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from typing_extensions import TYPE_CHECKING, List, Optional, overload
88

9-
from ..context import requires
109
from ..resources import (
1110
BaseResource,
1211
Resources,
@@ -132,7 +131,6 @@ def find(self) -> List[Integration]:
132131
for result in response.json()
133132
]
134133

135-
@requires("2025.07.0-dev")
136134
def find_by(
137135
self,
138136
integration_type: Optional[types.OAuthIntegrationType | str] = None,

0 commit comments

Comments
 (0)