Skip to content

CHORE: create a util for pytest compatibility, to access underlying fixture callable #368

Open
@smarie

Description

@smarie

In several tests we have this currently

    if PYTEST84_OR_GREATER:
        # See https://github.com/pytest-dev/pytest/pull/12473
        import inspect
        obj = inspect.unwrap(dummy)
    else:
        obj = dummy.__pytest_wrapped__.obj

it could probably be good to create a util function in common_pytest to perform this task : get_fixture_callable. THis would be easier for refactoring

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions