qa-httpx-writer

Generate pytest-compatible Python API tests from OpenAPI contracts using httpx.

2|2|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/AZANIR/qa-skills --skill qa-httpx-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa-httpx-writer
Source: https://github.com/AZANIR/qa-skills/tree/main/.cursor/skills/qa-httpx-writer
Command: npx skills add https://github.com/AZANIR/qa-skills --skill qa-httpx-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of Python API tests using the httpx library, streamlining the process of ensuring API functionality and contract adherence.

Core Features & Use Cases

  • Automated Test Generation: Writes pytest-compatible API tests from specifications and OpenAPI contracts.
  • Async Support: Generates tests using both httpx.Client (sync) and httpx.AsyncClient (async).
  • Schema Validation: Integrates Pydantic or JSON Schema for robust response validation.
  • Use Case: You have an OpenAPI specification for your new API. Use this Skill to generate a comprehensive suite of pytest tests that validate endpoints, request/response schemas, and authentication mechanisms.

Quick Start

Use the qa-httpx-writer skill to generate Python API tests for the /users endpoint based on the provided OpenAPI contract.

Frequently Asked Questions about qa-httpx-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate pytest tests from an OpenAPI specification in Python?

You can generate pytest tests from an OpenAPI specification by using this Skill to automatically create Python API tests with httpx, validating endpoints, request schemas, and response schemas.

Can I write asynchronous API tests with httpx and pytest?

Yes, you can write asynchronous API tests with httpx and pytest. This Skill generates tests using both synchronous httpx.Client and asynchronous httpx.AsyncClient for comprehensive API coverage.

Does httpx test generation support response schema validation with Pydantic?

Yes, httpx test generation supports response schema validation with Pydantic. This Skill integrates both Pydantic and JSON Schema to ensure robust validation of API response structures within pytest.

What is the best way to automate API testing for multiple authentication patterns in Python?

The best way to automate API testing for multiple authentication patterns is to generate pytest tests using httpx, which this Skill supports by creating test suites that handle various authentication mechanisms from your API contracts.

Do I need an OpenAPI contract to generate httpx API tests, or can I use test case specifications?

You do not strictly need an OpenAPI contract to generate httpx API tests. This Skill supports test creation from both OpenAPI contracts and standalone test case specifications to produce pytest-compatible Python tests.