| 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( |