Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions