Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pytest-dev/pytest-describe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.1.0
Choose a base ref
...
head repository: pytest-dev/pytest-describe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.2.0
Choose a head ref
  • 5 commits
  • 13 files changed
  • 1 contributor

Commits on Jun 12, 2026

  1. Add type hints and check them with mypy

    Also drop support for Python 3.9 and pytest 6,
    update tool versions, and bump version to 3.2.0.
    Cito committed Jun 12, 2026
    Configuration menu
    Copy the full SHA
    3379f48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40238f7 View commit details
    Browse the repository at this point in the history
  3. Support fixtures as describe block arguments (#54)

    Fixtures declared as parameters of a describe block (or shared behavior)
    are injected into all tests nested in the block. Unlike the earlier PoC,
    test functions are not wrapped: the declared names are added
    to each test's fixture closure in a pytest_generate_tests hook
    (so pytest resolves them itself and parametrized fixtures multiply tests,
    @pytest.mark.parametrize keeps working), and an autouse fixture
    writes the resolved values into the closure cells before each test,
    restoring placeholders on teardown. Using an argument in the
    describe body itself raises a descriptive collection-time error.
    Cito authored Jun 12, 2026
    Configuration menu
    Copy the full SHA
    0b8ea18 View commit details
    Browse the repository at this point in the history
  4. Expose describe functions and use docstrings as block names (#55)

    Add a public function get_describe_functions() so that reporting
    plugins can access the describe functions enclosing a test item,
    and an opt-in ini option describe_docstrings that uses docstrings
    as names for describe blocks in test reports.
    Cito authored Jun 12, 2026
    Configuration menu
    Copy the full SHA
    23aed77 View commit details
    Browse the repository at this point in the history
  5. Improve README a bit

    Cito committed Jun 12, 2026
    Configuration menu
    Copy the full SHA
    bcb7119 View commit details
    Browse the repository at this point in the history
Loading