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

Improve failure message for invocations received in the wrong order #633

Merged
merged 1 commit into from
Nov 18, 2023

Commits on Nov 18, 2023

  1. Improve sequence failure message

    I think there's more we could do in this area, but this implements
    @dchelimsky's suggestion which is definitely an improvement.
    
    If an invocation was unexpected because, although there is an
    expectation that expectation does not match due to an ordering
    constraint, then append "invoked out of order" to the failure message.
    
    e.g.
    
        unexpected invocation: #<Mock:mock>.foo() invoked out of order
    
    Closes #60 (only 11 years late!😅)
    floehopper committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    ac72324 View commit details
    Browse the repository at this point in the history