Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle bound fixture methods correctly #439

Merged
merged 1 commit into from Nov 11, 2022

Commits on Nov 10, 2022

  1. Handle bound fixture methods correctly

    When the current test request references an instance, bind the fixture function to that instance. When the unittest flag is set, this happens unconditionally, otherwise only if:
    
    - the fixture wasn't bound already
    - the fixture is bound to a compatible instance (the request.instance object has the same type or is a subclass of that type).
    
    This follows what pytest does in such cases, exactly.
    mjpieters committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    8860dc5 View commit details
    Browse the repository at this point in the history