Pytest is a Python testing framework that originated from the PyPy project. It can be used to write various types of software tests, including unit tests, integration tests, end-to-end tests, and functional tests. Its features include parametrized testing, fixtures, and assert re-writing.
pytest documentation
pytest.org →Link to the official site · 5,440 chars · not written by Vinony
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. Thanks to pytest 's detailed assertion introspection, you can simply use plain assert statements. See getting-started for more examples. Features Detailed info on failing assert statements (no need to remember self.assert names) Auto-discovery of test modules and functions Modular fixtures for managing small or parametrized long-lived test resources Can run unittest (or trial) test suites out of the box Python 3.10+ or PyPy3 Rich plugin architecture, with over 1300+ external plugins and thriving community Please use the GitHub issue tracker to submit bugs or request features. Open Collective is an online funding platform for open and transparent communities. It provides tools to raise money and share your finances in full transparency. The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
Excerpt from the source-code README · 5,453 chars · not written by Vinony
~8 min read
Pytest is a Python testing framework that originated from the PyPy project. It can be used to write various types of software tests, including unit tests, integration tests, end-to-end tests, and functional tests. Its features include parametrized testing, fixtures, and assert re-writing.
Pytest fixtures provide the contexts for tests by passing in parameter names in test cases; its parametrization eliminates duplicate code for testing multiple sets of input and output; and its rewritten assert statements provide detailed output for causes of failures.
via Wikidata · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).