Skip to content

Commit 582703e

Browse files
authored
feat: support test suite client (#9)
1 parent 8874cb3 commit 582703e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hive/testing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def start(cls, url: str, name: str, description: str) -> "HiveTestSuite":
2424
def end(self):
2525
response = requests.delete(self.url)
2626
response.raise_for_status()
27+
28+
def start_client(self, **kwargs) -> Client | None:
29+
kwargs["url"] = f"{self.url}/node"
30+
return Client.start(**kwargs)
2731

2832
def start_test(self, name: str, description: str) -> "HiveTest":
2933
url = f"{self.url}/test"

0 commit comments

Comments
 (0)