Toolverse
All skills

api-test-generator

by mikopbx

Генерация полных Python pytest тестов для REST API эндпоинтов с валидацией схемы. Использовать при создании тестов для новых эндпоинтов, добавлении покрытия для CRUD операций или валидации соответствия API с OpenAPI схемами.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
mikopbx
Category
Testing
Views
4

About this skill

Генерация полных Python pytest тестов для REST API эндпоинтов с валидацией схемы. Использовать при создании тестов для новых эндпоинтов, добавлении покрытия для CRUD операций или валидации соответствия API с OpenAPI схемами.

How to use

  1. Zidentyfikuj endpoint REST API, dla którego chcesz wygenerować testy — określ ścieżkę API (np. /pbxcore/api/v3/extensions), metody HTTP (GET, POST, PUT, DELETE, PATCH) oraz nazwę zasobu.

  2. Zlokalizuj plik DataStructure.php odpowiadający zasobowi, używając komendy find w katalogu źródłowym projektu — plik zawiera definicje parametrów dla danego endpointa.

  3. Przeanalizuj definicje parametrów w pliku DataStructure.php — wyodrębnij informacje o parametrach wymaganych i opcjonalnych, typach danych, regułach walidacji, wartościach domyślnych, wartościach enum oraz ograniczeniach wzorców (regex) i limitach min/max.

  4. Użyj skilla do wygenerowania pliku testów — skill automatycznie utworzy testy dla operacji CRUD, przypadków pozytywnych i negatywnych, walidacji parametrów, testów granicznych oraz walidacji schemy odpowiedzi.

  5. Wygenerowany plik testów będzie zawierać fixtures, obsługę autentykacji, szczegółowe asercje z komunikatami błędów oraz pełne pokrycie kombinacji parametrów — możesz go bezpośrednio uruchomić lub dostosować do specyficznych potrzeb projektu.

Related skills

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118