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

HttpSession: Improve error message when someone forgot to pass catch_response=True + small optimization #2762

Merged
merged 9 commits into from
Jun 25, 2024

Commits on Jun 16, 2024

  1. Dont create fake new Request object to attach to LocustResponse, use …

    …the one from the exception instead
    Lars Holmberg committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    e8a7b42 View commit details
    Browse the repository at this point in the history
  2. Various type hint fixes in LocustResponse/HttpSession

    Lars Holmberg committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    a074213 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Dont fail on "... takes 1 positional argument but 2 were given" when …

    …trying to give descriptive error message when .failure/.success is called without a catch_response=True
    Lars Holmberg committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    415ca8c View commit details
    Browse the repository at this point in the history
  2. avoid mypy error "Signature of "request" incompatible with supertype …

    …"Session" [override]"
    Lars Holmberg committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    8eee482 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6804e32 View commit details
    Browse the repository at this point in the history
  4. Rename "missing catch_response=True"-methods. further clarify error m…

    …essage.
    Lars Holmberg committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    5e9a73f View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Merge branch 'master' of https://github.com/locustio/locust into vari…

    …ous-improvements-in-HttpSession-mostly-type-hints
    Lars Holmberg committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    d916828 View commit details
    Browse the repository at this point in the history
  2. ignore type in one place

    Lars Holmberg committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ebbc2bb View commit details
    Browse the repository at this point in the history
  3. remove unused imports

    Lars Holmberg committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    57eac05 View commit details
    Browse the repository at this point in the history