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

Add test on receiving an invalid JSON in the APIError exception handler. #1512

Merged
merged 1 commit into from
Sep 22, 2024

Commits on Sep 22, 2024

  1. Add test on receiving an invalid JSON in the APIError exception handler.

    Manually build an invalid JSON body. Using HTML to fake using the wrong
    endpoint that returns HTML instead of JSON.
    
    Use that new http client to do some request and make sure the error
    matches.
    
    Signed-off-by: Alexandre Lavigne <[email protected]>
    lavigne958 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    8afb20b View commit details
    Browse the repository at this point in the history