Pytest Fixture 生成器
Prerequisites
Python
Installation
Requirements and caveats from upstream:
- .. code-block:: python
- <https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>_
- Python 3.10+ or PyPy3
Basic usage or getting-started notes:
- An example of a simple test:
- Thanks to pytest's detailed assertion introspection, you can simply use plain assert statements. See getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run> for more examples.
- Can run unittest <https://docs.pytest.org/en/stable/how-to/unittest.html> (or trial)
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/pytest-dev/pytest/HEAD/README.rst
Documentation
- https://docs.pytest.org/en/stable/how-to/fixtures.html