{"uid":"cap_yGy8F63035fwTtkP7CW7m","slug":"testforge-openapi-pytest-generator-e9841cff","name":"TestForge OpenAPI Pytest Generator","description":"An autonomous paid API accepting USDC on Base mainnet.","url":"https://47-85-47-24.sslip.io/v1/openapi-pytest","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"scenario":{"enum":["orders-api-tests"],"type":"string","description":"Built-in paid test-generation scenario"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["generator_id","generator_version","filename","framework","operations_count","tests_count","write_tests_gated","test_code","requirements","warnings"],"properties":{"filename":{"type":"string","const":"test_api.py"},"warnings":{"type":"array","items":{"type":"string"}},"framework":{"type":"string","const":"pytest+httpx"},"test_code":{"type":"string"},"tests_count":{"type":"integer","minimum":1},"generator_id":{"type":"string"},"requirements":{"type":"array","items":{"type":"string"}},"operations_count":{"type":"integer","minimum":1},"generator_version":{"type":"string"},"write_tests_gated":{"type":"integer","minimum":0}}}}}}},"responseSchema":{"type":"json","example":{"filename":"test_api.py","warnings":["Generated tests use sample values and should be reviewed before production use."],"framework":"pytest+httpx","test_code":"import httpx\n\ndef test_get_order():\n    response = httpx.get('https://api.example.com/orders/test')\n    assert response.status_code == 200\n","tests_count":1,"generator_id":"testforge-7a4c1a6c319ac673","requirements":["pytest>=8","httpx>=0.27"],"operations_count":1,"generator_version":"testforge-openapi-pytest/1.0","write_tests_gated":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HJZrI3aICa_xxdVD1w-Gk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a runnable pytest/httpx API test module from an OpenAPI 3.x contract using the built-in orders-api-tests scenario, without executing the target API","exampleAgentPrompt":"Generate a runnable pytest and httpx test module for the orders API — use the orders-api-tests scenario and give me the Python test code, filename, and any requirements or warnings.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: generator_id, generator_version, filename (test_api.py), framework (pytest+httpx), operations_count, tests_count, write_tests_gated count, test_code (full Python source), requirements array (pip packages needed), and warnings array. The test_code field contains a complete, importable pytest module ready to run against an API.","failureModes":["Invalid or missing scenario parameter returns an error — only 'orders-api-tests' enum value is accepted","Missing required 'input' object or 'method' field returns a validation error","Unsupported HTTP method (e.g. POST, PUT) returns an error — only GET, HEAD, DELETE are accepted","Payment failure or insufficient USDC balance blocks the request via x402 protocol","Service unavailable at the sslip.io host returns a connection error"],"whenToPreferThis":"Choose this endpoint when you need to instantly scaffold a pytest+httpx test suite from an OpenAPI 3.x contract without having to run or access the live target API. Ideal for CI pipeline bootstrapping, spec-driven TDD, or quickly producing a test harness for a new service. Prefer this over manual test writing or Postman-based approaches when Python/pytest is the target test framework.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:35:13.683Z","isFirstParty":false}