pytest-api-testing
CommunityTest FastAPI endpoints with pytest.
Authornekorush14
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill demonstrates how to write pytest-based tests for FastAPI endpoints using TestClient, including authentication and error handling scenarios.
Core Features & Use Cases
- Request/Response Validation: Ensure endpoints return correct shapes and status codes.
- Auth & Error Scenarios: Test protected routes and error responses.
- Fixtures & Reusability: Use fixtures to share setup across tests.
Quick Start
Write tests using TestClient for creating and retrieving a user, and add a fixture for an in-memory database.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pytest-api-testing Download link: https://github.com/nekorush14/dotfiles/archive/main.zip#pytest-api-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.