Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rubix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from urllib.parse import urljoin

class RubixClient:
def __init__(self, node_url: str, timeout: int = 300):
def __init__(self, node_url: str = "http://localhost:20000", timeout: int = 300):
"""
Initialize Rubix client.

Expand Down
5 changes: 5 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ def test_client_creation_with_valid_url():
client = RubixClient(valid_node_url)

assert client is not None

client_default_url = RubixClient()

assert client_default_url is not None
assert client_default_url.node_url == "http://localhost:20000", "Default node URL should be http://localhost:20000"