·pytest-patterns
</>

pytest-patterns

hieutrtr/ai1-skills

FastAPI アプリケーション用の pytest を使用した Python バックエンド テスト パターン。 Python テストを作成するときに使用します: サービスとリポジトリの単体テスト、httpx.AsyncClient を使用した API エンドポイントの統合テスト、フィクスチャの作成、factory_boy を使用したファクトリー セットアップ、pytest-asyncio を使用した非同期テスト、モック戦略、パラメーター化されたテスト。テスト組織 (テスト/ユニット、テスト/統合)、conftest 階層、およびカバレッジ要件について説明します。フロントエンド テスト (react-testing-patterns を使用) または E2E ブラウザ テスト (e2e-testing を使用) はカバーされません。

13インストール·1トレンド·@hieutrtr

インストール

$npx skills add https://github.com/hieutrtr/ai1-skills --skill pytest-patterns

SKILL.md

Run subsets: pytest -m unit, pytest -m integration, pytest -m "not slow".

Fixtures cascade: root conftest.py provides shared fixtures; subdirectory conftest files add layer-specific fixtures.

| function (default) | Isolated per-test data | dbsession, sampleuser | | class | Shared across test class | serviceinstance | | module | Shared across test file | seededdatabase | | session | Shared across entire run | engine, anyiobackend |

FastAPI アプリケーション用の pytest を使用した Python バックエンド テスト パターン。 Python テストを作成するときに使用します: サービスとリポジトリの単体テスト、httpx.AsyncClient を使用した API エンドポイントの統合テスト、フィクスチャの作成、factory_boy を使用したファクトリー セットアップ、pytest-asyncio を使用した非同期テスト、モック戦略、パラメーター化されたテスト。テスト組織 (テスト/ユニット、テスト/統合)、conftest 階層、およびカバレッジ要件について説明します。フロントエンド テスト (react-testing-patterns を使用) または E2E ブラウザ テスト (e2e-testing を使用) はカバーされません。 ソース: hieutrtr/ai1-skills。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/hieutrtr/ai1-skills --skill pytest-patterns
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-05
更新日
2026-02-18

クイックアンサー

pytest-patterns とは?

FastAPI アプリケーション用の pytest を使用した Python バックエンド テスト パターン。 Python テストを作成するときに使用します: サービスとリポジトリの単体テスト、httpx.AsyncClient を使用した API エンドポイントの統合テスト、フィクスチャの作成、factory_boy を使用したファクトリー セットアップ、pytest-asyncio を使用した非同期テスト、モック戦略、パラメーター化されたテスト。テスト組織 (テスト/ユニット、テスト/統合)、conftest 階層、およびカバレッジ要件について説明します。フロントエンド テスト (react-testing-patterns を使用) または E2E ブラウザ テスト (e2e-testing を使用) はカバーされません。 ソース: hieutrtr/ai1-skills。

pytest-patterns のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/hieutrtr/ai1-skills --skill pytest-patterns インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/hieutrtr/ai1-skills