About 400 results
Open links in new tab
  1. Get Started — pytest documentation

    pytest discovers all tests following its Conventions for Python test discovery, so it finds both test_ prefixed functions. There is no need to subclass anything, but make sure to prefix your class with …

  2. pytest documentation

    The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries. PyPI package name: pytest

  3. Full pytest documentation

    Full pytest documentation ¶ Download latest version as PDF Start here ¶ Get Started Install pytest Create your first test Run multiple tests Assert that a certain exception is raised Group multiple tests …

  4. Full pytest documentation

    How to invoke pytest Specifying which tests to run Getting help on version, option names, environment variables Profiling test execution duration Managing loading of plugins Other ways of calling pytest …

  5. How-to guides — pytest documentation

    How-to guides Core pytest functionality ¶ How to invoke pytest How to write and report assertions in tests How to use fixtures How to mark test functions with attributes How to parametrize fixtures and …

  6. pytest: helps you write better programs — pytest documentation

    The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries. pytest requires: Python 3.7+ or PyPy3.

  7. How-to guides - pytest documentation

    pytest and other test systems ¶ How to use pytest with an existing test suite How to use unittest -based tests with pytest How to implement xunit-style set-up

  8. Usage and Invocations — pytest documentation

    Calling pytest.main() will result in importing your tests and any modules that they import. Due to the caching mechanism of python’s import system, making subsequent calls to pytest.main() from the …

  9. Examples and customization tricks - pytest documentation

    How to write and report assertions in tests for basic assertion examples Fixtures for basic fixture/setup examples How to parametrize fixtures and test functions for basic test function parametrization How …

  10. Parametrizing fixtures and test functions — pytest documentation

    For example, let’s say we want to run a test taking string inputs which we want to set via a new pytest command line option. Let’s first write a simple test accepting a stringinput fixture function argument: