()
| 45 | @respx.mock |
| 46 | @pytest.mark.asyncio |
| 47 | async def test_create_task_async(): |
| 48 | respx.post(f"{BASE_URL}/createTask").mock( |
| 49 | return_value=Response(200, json={"errorId": 0, "taskId": 789}) |
| 50 | ) |
| 51 | client = CapmonsterClient("test_key") |
| 52 | task = RecaptchaV2Task(websiteURL="https://example.com", websiteKey="key123") |
| 53 | task_id = await client.create_task_async(task) |
| 54 | assert task_id == 789 |
| 55 | |
| 56 | |
| 57 | @respx.mock |
nothing calls this directly
no test coverage detected