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

Function test_to_request

tests/geetest_test.py:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_to_request():
13 task = GeeTestV4Task(
14 websiteURL="https://example.com",
15 gt="gt_example"
16 )
17 result = task.to_request()
18 assert result["type"] == "GeeTestTask"
19 assert result["gt"] == "gt_example"
20 assert result["websiteURL"] == "https://example.com"
21
22
23@pytest.mark.skipif(API_KEY is None, reason="API_KEY is not set")

Callers

nothing calls this directly

Calls 2

to_requestMethod · 0.95
GeeTestV4TaskClass · 0.90

Tested by

no test coverage detected