{"enrichment":{"faq":[{"a":"Pytest executes Python unit tests by discovering test files (test_*.py or *_test.py) in your project and running all test functions. Use `pytest` to run all tests, `pytest path/to/test.py` for specific files, or `pytest -k pattern` to filter by test name. Pytest's straightforward command-line interface makes it the industry standard for Python testing, especially in customer support systems where reliability is critical.","q":"How do I run pytest for Python unit testing?"},{"a":"Pytest fixtures are reusable test components defined with the @pytest.fixture decorator that provide setup and teardown logic. Fixtures handle database connections, mock objects, and test data initialization\u2014essential for testing ticketing platforms and APIs. Pass fixture names as function parameters to inject them into tests. This approach eliminates boilerplate and ensures consistent test environments across your test suite.","q":"What are pytest fixtures and how do I use them?"},{"a":"Pytest discovers tests automatically in files matching test_*.py or *_test.py patterns. Configure markers in pytest.ini or pyproject.toml to categorize tests (e.g., @pytest.mark.slow, @pytest.mark.integration). Use `pytest -m marker_name` to run specific test groups. This setup is vital for multi-tenant architectures where you need to separate unit tests, integration tests, and performance tests efficiently.","q":"How do I configure pytest markers and test discovery?"},{"a":"Pytest generates coverage reports using the pytest-cov plugin. Install it with `pip install pytest-cov`, then run `pytest --cov=your_module --cov-report=html` to create an HTML coverage report. This shows which lines of code are tested, helping you identify gaps in test coverage for critical components like APIs and database operations in support systems.","q":"How can I generate test coverage reports with pytest?"},{"a":"Pytest offers several debugging options: `pytest -v` for verbose output, `pytest -s` to show print statements, `pytest --tb=short` for concise tracebacks, and `pytest --pdb` to drop into the debugger on failures. Use `pytest --lf` to rerun last failed tests or `pytest --ff` to run failed tests first. These tools help troubleshoot issues in ticketing platforms and complex test scenarios quickly.","q":"What pytest command line options help debug failing tests?"},{"a":"Pytest extends through plugins installed via pip (e.g., pytest-asyncio for async testing, pytest-mock for mocking). Create a conftest.py file in your project root to define shared fixtures and custom hooks. Configure pytest behavior in pytest.ini, setup.cfg, or pyproject.toml. This flexibility lets you tailor Pytest to your specific needs\u2014whether testing PostgreSQL databases, SQLAlchemy models, or multi-tenant architectures.","q":"How do I extend pytest with plugins and custom configurations?"}],"shadow_tags":["test-automation","python-testing","unit-testing-framework","test-fixtures","ci-cd-testing","code-quality","test-coverage","developer-tools"],"summary_rewrite":"Pytest is Python's industry-standard testing framework, built to handle the rigorous demands of customer support systems. This skill covers fixtures, parametrization, mocking, async operations, and database testing with PostgreSQL and SQLAlchemy\u2014everything needed to test ticketing platforms, APIs, and multi-tenant architectures reliably."},"gist":{"api_url":"https://skillfed.io/api/skills/manutej/luxor-claude-marketplace/pytest.json","as_of":"2026-06-13","description":"Pytest helps you run and execute Python unit tests with fixtures, mocking. 61 stars \u00b7 updated Jun 2026. npx skillfed install manutej/luxor-claude-marketplace/pytest","install":{"manual":["git clone https://github.com/manutej/luxor-claude-marketplace","cp -r luxor-claude-marketplace ~/.claude/skills/pytest"],"primary":"npx skillfed install manutej/luxor-claude-marketplace/pytest","version":"a0391911"},"kind":"skill","mirror_url":"https://skillfed.io/manutej/luxor-claude-marketplace/pytest.md","similar":[{"id":"JosiahSiegel/claude-plugin-marketplace/python-testing","name":"python-testing","publisher":"JosiahSiegel/claude-plugin-marketplace","url":"https://skillfed.io/JosiahSiegel/claude-plugin-marketplace/python-testing"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns","name":"python-testing-patterns","publisher":"HermeticOrmus/LibreUIUX-Claude-Code","url":"https://skillfed.io/HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns"},{"id":"manutej/luxor-claude-marketplace/pytest-patterns","name":"Pytest Patterns","publisher":"manutej/luxor-claude-marketplace","url":"https://skillfed.io/manutej/luxor-claude-marketplace/pytest-patterns"},{"id":"LambdaTest/agent-skills/pytest-skill","name":"pytest-skill","publisher":"LambdaTest/agent-skills","url":"https://skillfed.io/LambdaTest/agent-skills/pytest-skill"},{"id":"xu-xiang/everything-claude-code-zh/python-testing","name":"python-testing","publisher":"xu-xiang/everything-claude-code-zh","url":"https://skillfed.io/xu-xiang/everything-claude-code-zh/python-testing"}],"title":"Pytest by manutej: Run and execute Python unit tests with pytest framework \u2014 SkillFed","use":{"when":["Pytest fixtures are reusable test components defined with the @pytest.fixture decorator that provide setup and teardown logic.","Pytest discovers tests automatically in files matching test_*.py or *_test.py patterns."]},"what":{"lead":"Pytest helps you run and execute Python unit tests with fixtures, mocking, and async support for customer support systems.","rest":"Pytest is Python's industry-standard testing framework, built to handle the rigorous demands of customer support systems. This skill covers fixtures, parametrization, mocking, async operations, and database testing with PostgreSQL and SQLAlchemy\u2014everything needed to test ticketing platforms, APIs, and multi-tenant architectures reliably."}},"id":"manutej/luxor-claude-marketplace/pytest","install":{"mode":"external","repo":"https://github.com/manutej/luxor-claude-marketplace"},"links":{"html":"https://skillfed.io/manutej/luxor-claude-marketplace/pytest","md":"https://skillfed.io/manutej/luxor-claude-marketplace/pytest.md","repo":"https://github.com/manutej/luxor-claude-marketplace"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":15,"language":"Shell","last_updated":"2026-06-13","license":null,"name":"Pytest","publisher":"manutej","stars":61},"relations":{"similar":[{"id":"JosiahSiegel/claude-plugin-marketplace/python-testing"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns"},{"id":"manutej/luxor-claude-marketplace/pytest-patterns"},{"id":"LambdaTest/agent-skills/pytest-skill"},{"id":"xu-xiang/everything-claude-code-zh/python-testing"},{"id":"manutej/luxor-claude-marketplace/alembic"},{"id":"manutej/luxor-claude-marketplace/fastapi"},{"id":"bobmatnyc/claude-mpm-skills/pytest"},{"id":"manutej/luxor-claude-marketplace/sqlalchemy"},{"id":"affaan-m/ECC/python-testing"}]},"slug":{"owner":"manutej","repo":"luxor-claude-marketplace","skill":"pytest"},"version":"a0391911"}
