Skip to content

Add pytest-accept to a pixi developer environment #10990

@Illviljan

Description

@Illviljan

Is your feature request related to a problem?

pytest-accept is quite important for generation aggregations and quickly fixing changes in doctests.

For example:

"""Generate module and stub file for arithmetic operators of various xarray classes.
For internal xarray development use only.
Usage:
python xarray/util/generate_aggregations.py
pytest --doctest-modules xarray/{core,namedarray}/_aggregations.py --accept || true
pytest --doctest-modules xarray/{core,namedarray}/_aggregations.py
This requires [pytest-accept](https://github.com/max-sixty/pytest-accept).
The second run of pytest is deliberate, since the first will return an error
while replacing the doctests.
"""

Describe the solution you'd like

Add pytest-accept to a pixi developer environment since it really isn't necessary for CI testing.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions