# pytest: AI-friendly with conditions

> Contributions made with AI tools are welcome as long as the submitter understands the changes, can respond to review and takes responsibility. Purely agentic PRs without meaningful human review are closed and their authors banned. Crediting AI with Co-authored-by is appreciated but optional.

- What it is: A Python testing framework. (Developer tool)
- Homepage: https://docs.pytest.org/
- Repository: https://github.com/pytest-dev/pytest
- Overall stance: AI-friendly with conditions (Mostly friendly). AI-assisted contributions are accepted with extra rules, such as disclosing AI use, or AI is banned for issues or written text.
- Last classified: 2026-10-09 (manual review, high confidence)
- Policy last changed: 2026-10-09
- Web page: https://areweaifriendly.com/projects/pytest/

## Policy by area

- **Code contributions**: AI-friendly with conditions (Contributor takes full responsibility; A human must review the output; No autonomous agents)
- **Issues & bug reports**: No AI policy
- **AI-written text**: No AI policy

## In their own words

- Code contributions: "We welcome contributions from all developers, including those who use AI/LLM tools as part of their workflow." (https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst)
- Code contributions: "Regardless of how the code was produced, the person submitting a pull request must understand the changes and be able to respond to review feedback." (https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst)
- Code contributions: "Pull requests that are entirely generated by AI agents, with no meaningful human review, understanding, or oversight, will be closed." (https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst)
- Code contributions: "This is not required, but helps reviewers set expectations and is appreciated." (https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst)

## Sources

- [Contributing to pytest](https://github.com/pytest-dev/pytest/blob/main/CONTRIBUTING.rst), fetched 2026-10-09
