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

Function test_to_request

tests/basilisk_test.py:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

to_requestMethod · 0.95
BasiliskTaskClass · 0.90

Tested by

no test coverage detected