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 3eeccd4 commit e1be1c4Copy full SHA for e1be1c4
tests/posit/connect/test_client.py
@@ -172,3 +172,13 @@ def test_delete(self, MockSession):
172
client = Client(api_key=api_key, url=url)
173
client.delete("/foo")
174
client.session.delete.assert_called_once_with("https://connect.example.com/__api__/foo")
175
+
176
177
+class TestClientOAuth:
178
+ def test_required_version(self):
179
+ api_key = "12345"
180
+ url = "https://connect.example.com"
181
+ client = Client(api_key=api_key, url=url)
182
+ client.ctx.version = "2024.07.0"
183
+ with pytest.raises(RuntimeError):
184
+ client.oauth
0 commit comments