Skip to content

Commit 16d2482

Browse files
authored
feat(pyoso): update pyoso base url (#5266)
* chore: update lock * feat(pyoso): update pyoso base-url to oso.xyz * update tests
1 parent f6cbcd4 commit 16d2482

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

warehouse/pyoso/pyoso/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
DEFAULT_BASE_URL = "https://www.opensource.observer/api/v1/"
1+
DEFAULT_BASE_URL = "https://www.oso.xyz/api/v1/"
22
OSO_API_KEY = "OSO_API_KEY"

warehouse/pyoso/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyoso"
3-
version = "0.6.6"
3+
version = "0.7.0"
44
description = ""
55
readme = "README.md"
66
requires-python = ">=3.8"

warehouse/pyoso/tests/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_to_pandas_with_default_api_key(
8080
df = client.to_pandas(query)
8181

8282
mock_post.assert_called_once_with(
83-
"https://www.opensource.observer/api/v1/sql",
83+
"https://www.oso.xyz/api/v1/sql",
8484
headers={
8585
"Content-Type": "application/json",
8686
"Authorization": f"Bearer {self.DEFAULT_API_KEY}",
@@ -106,7 +106,7 @@ def test_to_pandas_http_error(self, mock_post: mock.Mock, mock_registry: mock.Mo
106106
client.to_pandas(query)
107107

108108
mock_post.assert_called_once_with(
109-
"https://www.opensource.observer/api/v1/sql",
109+
"https://www.oso.xyz/api/v1/sql",
110110
headers={
111111
"Content-Type": "application/json",
112112
"Authorization": f"Bearer {self.CUSTOM_API_KEY}",
@@ -156,7 +156,7 @@ def test_semantic_select_to_pandas(self, mock_post: mock.Mock, mock_get: mock.Mo
156156

157157
# Verify the connector endpoint was called
158158
mock_get.assert_called_once_with(
159-
"https://www.opensource.observer/api/v1/connector",
159+
"https://www.oso.xyz/api/v1/connector",
160160
headers={
161161
"Content-Type": "application/json",
162162
"Authorization": f"Bearer {self.CUSTOM_API_KEY}",
@@ -165,7 +165,7 @@ def test_semantic_select_to_pandas(self, mock_post: mock.Mock, mock_get: mock.Mo
165165

166166
# Verify the SQL endpoint was called for the query
167167
mock_post.assert_called_once_with(
168-
"https://www.opensource.observer/api/v1/sql",
168+
"https://www.oso.xyz/api/v1/sql",
169169
headers={
170170
"Content-Type": "application/json",
171171
"Authorization": f"Bearer {self.CUSTOM_API_KEY}",

0 commit comments

Comments
 (0)