MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / fake_post

Function fake_post

tests/test_codex2api_upload.py:59–62  ·  view source on GitHub ↗
(url, **kwargs)

Source from the content-addressed store, hash-verified

57 return calls["mime"]
58
59 def fake_post(url, **kwargs):
60 calls["url"] = url
61 calls["kwargs"] = kwargs
62 return FakeResponse(status_code=200, payload={"message": "导入成功"})
63
64 monkeypatch.setattr(codex2api_upload, "CurlMime", fake_mime)
65 monkeypatch.setattr(codex2api_upload.cffi_requests, "post", fake_post)

Callers

nothing calls this directly

Calls 1

FakeResponseClass · 0.70

Tested by

no test coverage detected