MCPcopy Create free account
hub / github.com/alperensert/capmonster_python / test_create_task

Function test_create_task

tests/client_mock_test.py:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34@respx.mock
35def test_create_task():
36 respx.post(f"{BASE_URL}/createTask").mock(
37 return_value=Response(200, json={"errorId": 0, "taskId": 123456})
38 )
39 client = CapmonsterClient("test_key")
40 task = RecaptchaV2Task(websiteURL="https://example.com", websiteKey="key123")
41 task_id = client.create_task(task)
42 assert task_id == 123456
43
44
45@respx.mock

Callers

nothing calls this directly

Calls 3

create_taskMethod · 0.95
CapmonsterClientClass · 0.90
RecaptchaV2TaskClass · 0.90

Tested by

no test coverage detected