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

Class MockClient

tests/load-test.py:431–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430 # Create a mock client object with required attributes
431 class MockClient:
432 def __init__(self, host, token):
433 self.host = host
434 self.token = token
435
436 def _get_headers(self):
437 return {"Authorization": f"Bearer {self.token}", "Content-type": "application/json"}
438
439 mock_client = MockClient(host, token)
440 final_status, success = transaction_id.poll_completion(

Callers 1

load-test.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected