Toolverse
All skills

testing-python

by jlowin

Write and evaluate effective Python tests using pytest. Use when writing tests, reviewing test code, debugging test failures, or improving test coverage. Covers test design, fixtures, parameterization, mocking, and async testing.

Installation

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

Installation

Quick info

Author
jlowin
Category
Testing
Views
37

About this skill

Write and evaluate effective Python tests using pytest. Use when writing tests, reviewing test code, debugging test failures, or improving test coverage. Covers test design, fixtures, parameterization, mocking, and async testing.

How to use

  1. Zainstaluj umiejętność w swoim środowisku Claude lub Copilot, wskazując repozytorium jlowin/fastmcp. 2. Gdy piszesz nowy test, opisz funkcjonalność, którą chcesz przetestować — umiejętność zasugeruje strukturę testu i nazwy zgodne z konwencją, gdzie nazwa testu wyjaśnia, co się psuje w przypadku błędu. 3. Jeśli testujesz wiele wariantów tej samej logiki (np. różne dane wejściowe), użyj parametryzacji pytest — umiejętność pokaże ci składnię @pytest.mark.parametrize i jak ustrukturyzować listę przypadków testowych. 4. Dla testów asynchronicznych pisz funkcje async bez dekoratora @pytest.mark.asyncio — umiejętność przypomni ci, że projekt używa asyncio_mode="auto". 5. Gdy debugujesz nieudany test, przeanalizuj nazwę testu i asercje — umiejętność pomoże ci zidentyfikować, czy test testuje zbyt wiele rzeczy naraz, i zasugeruje rozbicie go na osobne testy. 6. Przeglądzając istniejący kod testowy, poproś umiejętność o ocenę — sprawdzi, czy testy są atomowe, czy nazwy są opisowe, i czy fixtures oraz mockowanie są prawidłowo zastosowane.

Related skills

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

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

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190

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