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