We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da52c74 + 5d15e73 commit 4a3f3a0Copy full SHA for 4a3f3a0
rubix/client.py
@@ -3,7 +3,7 @@
3
from urllib.parse import urljoin
4
5
class RubixClient:
6
- def __init__(self, node_url: str, timeout: int = 300):
+ def __init__(self, node_url: str = "http://localhost:20000", timeout: int = 300):
7
"""
8
Initialize Rubix client.
9
tests/test_client.py
@@ -8,3 +8,8 @@ def test_client_creation_with_valid_url():
client = RubixClient(valid_node_url)
10
assert client is not None
11
+
12
+ client_default_url = RubixClient()
13
14
+ assert client_default_url is not None
15
+ assert client_default_url.node_url == "http://localhost:20000", "Default node URL should be http://localhost:20000"
0 commit comments