[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77SQBP7T3GGHPB36HDP2X21":3,"skill-same:01M77SQBP7T3GGHPB36HDP2X21":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77SQBP7T3GGHPB36HDP2X21","pytest",null,"Pytest testing patterns for Python. Trigger: When writing Python tests - fixtures, mocking, markers.","janpereira-dev\u002FskillsCurate","janpereira-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6440548?v=4","01M6KKKXBFFK7QF5Y2JFXN35FF","Jan Pereira","01M77ND31QCT5KM25E1SW71M8F",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pytest\ndescription: >\n  Pytest testing patterns for Python.\n  Trigger: When writing Python tests - fixtures, mocking, markers.\nlicense: Apache-2.0\nmetadata:\n  author: gentleman-programming\n  version: \"1.0\"\n---\n\n## Basic Test Structure\n\n```python\nimport pytest\n\nclass TestUserService:\n    def test_create_user_success(self):\n        user = create_user(name=\"John\", email=\"john@test.com\")\n        assert user.name == \"John\"\n        assert user.email == \"john@test.com\"\n\n    def test_create_user_invalid_email_fails(self):\n        with pytest.raises(ValueError, match=\"Invalid email\"):\n            create_user(name=\"John\", email=\"invalid\")\n```\n\n## Fixtures\n\n```python\nimport pytest\n\n@pytest.fixture\ndef user():\n    \"\"\"Create a test user.\"\"\"\n    return User(name=\"Test User\", email=\"test@example.com\")\n\n@pytest.fixture\ndef authenticated_client(client, user):\n    \"\"\"Client with authenticated user.\"\"\"\n    client.force_login(user)\n    return client\n\n# Fixture with teardown\n@pytest.fixture\ndef temp_file():\n    path = Path(\"\u002Ftmp\u002Ftest_file.txt\")\n    path.write_text(\"test content\")\n    yield path  # Test runs here\n    path.unlink()  # Cleanup after test\n\n# Fixture scopes\n@pytest.fixture(scope=\"module\")  # Once per module\n@pytest.fixture(scope=\"class\")   # Once per class\n@pytest.fixture(scope=\"session\") # Once per test session\n```\n\n## conftest.py\n\n```python\n# tests\u002Fconftest.py - Shared fixtures\nimport pytest\n\n@pytest.fixture\ndef db_session():\n    session = create_session()\n    yield session\n    session.rollback()\n\n@pytest.fixture\ndef api_client():\n    return TestClient(app)\n```\n\n## Mocking\n\n```python\nfrom unittest.mock import patch, MagicMock\n\nclass TestPaymentService:\n    def test_process_payment_success(self):\n        with patch(\"services.payment.stripe_client\") as mock_stripe:\n            mock_stripe.charge.return_value = {\"id\": \"ch_123\", \"status\": \"succeeded\"}\n\n            result = process_payment(amount=100)\n\n            assert result[\"status\"] == \"succeeded\"\n            mock_stripe.charge.assert_called_once_with(amount=100)\n\n    def test_process_payment_failure(self):\n        with patch(\"services.payment.stripe_client\") as mock_stripe:\n            mock_stripe.charge.side_effect = PaymentError(\"Card declined\")\n\n            with pytest.raises(PaymentError):\n                process_payment(amount=100)\n\n# MagicMock for complex objects\ndef test_with_mock_object():\n    mock_user = MagicMock()\n    mock_user.id = \"user-123\"\n    mock_user.name = \"Test User\"\n    mock_user.is_active = True\n\n    result = get_user_info(mock_user)\n    assert result[\"name\"] == \"Test User\"\n```\n\n## Parametrize\n\n```python\n@pytest.mark.parametrize(\"input,expected\", [\n    (\"hello\", \"HELLO\"),\n    (\"world\", \"WORLD\"),\n    (\"pytest\", \"PYTEST\"),\n])\ndef test_uppercase(input, expected):\n    assert input.upper() == expected\n\n@pytest.mark.parametrize(\"email,is_valid\", [\n    (\"user@example.com\", True),\n    (\"invalid-email\", False),\n    (\"\", False),\n    (\"user@.com\", False),\n])\ndef test_email_validation(email, is_valid):\n    assert validate_email(email) == is_valid\n```\n\n## Markers\n\n```python\n# pytest.ini or pyproject.toml\n[tool.pytest.ini_options]\nmarkers = [\n    \"slow: marks tests as slow\",\n    \"integration: marks integration tests\",\n]\n\n# Usage\n@pytest.mark.slow\ndef test_large_data_processing():\n    ...\n\n@pytest.mark.integration\ndef test_database_connection():\n    ...\n\n@pytest.mark.skip(reason=\"Not implemented yet\")\ndef test_future_feature():\n    ...\n\n@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Unix only\")\ndef test_unix_specific():\n    ...\n\n# Run specific markers\n# pytest -m \"not slow\"\n# pytest -m \"integration\"\n```\n\n## Async Tests\n\n```python\nimport pytest\n\n@pytest.mark.asyncio\nasync def test_async_function():\n    result = await async_fetch_data()\n    assert result is not None\n```\n\n## Commands\n\n```bash\npytest                          # Run all tests\npytest -v                       # Verbose output\npytest -x                       # Stop on first failure\npytest -k \"test_user\"           # Filter by name\npytest -m \"not slow\"            # Filter by marker\npytest --cov=src                # With coverage\npytest -n auto                  # Parallel (pytest-xdist)\npytest --tb=short               # Short traceback\n```\n\n## Keywords\npytest, python, testing, fixtures, mocking, parametrize, markers\n","## Basic Test Structure\n\n```python\nimport pytest\n\nclass TestUserService:\n    def test_create_user_success(self):\n        user = create_user(name=\"John\", email=\"john@test.com\")\n        assert user.name == \"John\"\n        assert user.email == \"john@test.com\"\n\n    def test_create_user_invalid_email_fails(self):\n        with pytest.raises(ValueError, match=\"Invalid email\"):\n            create_user(name=\"John\", email=\"invalid\")\n```\n\n## Fixtures\n\n```python\nimport pytest\n\n@pytest.fixture\ndef user():\n    \"\"\"Create a test user.\"\"\"\n    return User(name=\"Test User\", email=\"test@example.com\")\n\n@pytest.fixture\ndef authenticated_client(client, user):\n    \"\"\"Client with authenticated user.\"\"\"\n    client.force_login(user)\n    return client\n\n# Fixture with teardown\n@pytest.fixture\ndef temp_file():\n    path = Path(\"\u002Ftmp\u002Ftest_file.txt\")\n    path.write_text(\"test content\")\n    yield path  # Test runs here\n    path.unlink()  # Cleanup after test\n\n# Fixture scopes\n@pytest.fixture(scope=\"module\")  # Once per module\n@pytest.fixture(scope=\"class\")   # Once per class\n@pytest.fixture(scope=\"session\") # Once per test session\n```\n\n## conftest.py\n\n```python\n# tests\u002Fconftest.py - Shared fixtures\nimport pytest\n\n@pytest.fixture\ndef db_session():\n    session = create_session()\n    yield session\n    session.rollback()\n\n@pytest.fixture\ndef api_client():\n    return TestClient(app)\n```\n\n## Mocking\n\n```python\nfrom unittest.mock import patch, MagicMock\n\nclass TestPaymentService:\n    def test_process_payment_success(self):\n        with patch(\"services.payment.stripe_client\") as mock_stripe:\n            mock_stripe.charge.return_value = {\"id\": \"ch_123\", \"status\": \"succeeded\"}\n\n            result = process_payment(amount=100)\n\n            assert result[\"status\"] == \"succeeded\"\n            mock_stripe.charge.assert_called_once_with(amount=100)\n\n    def test_process_payment_failure(self):\n        with patch(\"services.payment.stripe_client\") as mock_stripe:\n            mock_stripe.charge.side_effect = PaymentError(\"Card declined\")\n\n            with pytest.raises(PaymentError):\n                process_payment(amount=100)\n\n# MagicMock for complex objects\ndef test_with_mock_object():\n    mock_user = MagicMock()\n    mock_user.id = \"user-123\"\n    mock_user.name = \"Test User\"\n    mock_user.is_active = True\n\n    result = get_user_info(mock_user)\n    assert result[\"name\"] == \"Test User\"\n```\n\n## Parametrize\n\n```python\n@pytest.mark.parametrize(\"input,expected\", [\n    (\"hello\", \"HELLO\"),\n    (\"world\", \"WORLD\"),\n    (\"pytest\", \"PYTEST\"),\n])\ndef test_uppercase(input, expected):\n    assert input.upper() == expected\n\n@pytest.mark.parametrize(\"email,is_valid\", [\n    (\"user@example.com\", True),\n    (\"invalid-email\", False),\n    (\"\", False),\n    (\"user@.com\", False),\n])\ndef test_email_validation(email, is_valid):\n    assert validate_email(email) == is_valid\n```\n\n## Markers\n\n```python\n# pytest.ini or pyproject.toml\n[tool.pytest.ini_options]\nmarkers = [\n    \"slow: marks tests as slow\",\n    \"integration: marks integration tests\",\n]\n\n# Usage\n@pytest.mark.slow\ndef test_large_data_processing():\n    ...\n\n@pytest.mark.integration\ndef test_database_connection():\n    ...\n\n@pytest.mark.skip(reason=\"Not implemented yet\")\ndef test_future_feature():\n    ...\n\n@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Unix only\")\ndef test_unix_specific():\n    ...\n\n# Run specific markers\n# pytest -m \"not slow\"\n# pytest -m \"integration\"\n```\n\n## Async Tests\n\n```python\nimport pytest\n\n@pytest.mark.asyncio\nasync def test_async_function():\n    result = await async_fetch_data()\n    assert result is not None\n```\n\n## Commands\n\n```bash\npytest                          # Run all tests\npytest -v                       # Verbose output\npytest -x                       # Stop on first failure\npytest -k \"test_user\"           # Filter by name\npytest -m \"not slow\"            # Filter by marker\npytest --cov=src                # With coverage\npytest -n auto                  # Parallel (pytest-xdist)\npytest --tb=short               # Short traceback\n```\n\n## Keywords\npytest, python, testing, fixtures, mocking, parametrize, markers\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"gentleman-programming","1.0","Pytest testing patterns for Python. Trigger: When writing Python tests - fixtures, mocking, markers.\n","main","ba43a4e7e8b0fd6b150b14bcb48978ec40879a28",".agents\u002Fskills\u002Fpytest","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev","IT Leader, Scrum Master, FullStack Developer, SEO\u002FSEM Master #Angular #React\r\n","2026-07-13 03:04:32",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add janpereira-dev\u002FskillsCurate --skill pytest",{"tool":41,"command":42},"bunx","bunx skills add janpereira-dev\u002FskillsCurate --skill pytest",{"tool":44,"command":45},"pnpm","pnpm dlx skills add janpereira-dev\u002FskillsCurate --skill pytest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest\u002FSKILL.md",true,[],[50,57,64,71,79,87],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M77T9KN6TEJMPPTQZDEB4K61","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M77T9GN2GABPPWDGDCXJ6QWK","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M77T98A9R6PK155P71VX9MND","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77T9505TGQGWHGAYVXGE2KS","web-quality-audit","Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to \"audit my site\", \"review web quality\", \"run lighthouse audit\", \"check page quality\", or \"optimize my website\".","MIT","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-quality-audit\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77T8YRVRNK8W4MG63XM80NK","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M77T8CEPQFZRRNGBYZX46P4Y","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[]]