MCPcopy Create free account
hub / github.com/cosdata/cosdata / MockClient

Class MockClient

tests/rps-test.py:374–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373 # Create a mock client object with required attributes
374 class MockClient:
375 def __init__(self, host, token):
376 self.host = host
377 self.token = token
378
379 def _get_headers(self):
380 return {"Authorization": f"Bearer {self.token}", "Content-type": "application/json"}
381
382 mock_client = MockClient(host, token)
383 final_status, success = transaction_id.poll_completion(

Callers 1

rps-test.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected