-
Notifications
You must be signed in to change notification settings - Fork 2
Added MVG errors with better error messages #115
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautifully implemented. Thanks for taking care of this. Just a small question about some functions
tests/test_errors.py
Outdated
def mock_fail_request(json_body): | ||
return MockResponse(400, "Bad Request", json_body) | ||
|
||
|
||
def assert_fail_response(msg, detail="No error message"): | ||
assert msg == f"400 - Bad Request: {detail}" | ||
8000
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these two functions used? Do not seem to be invoked by other functions, and won't be called as a test function by pytest either?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were just something I was playing around with but decided was overkill. Seems I forgot to remove the functions
Just found two minor issues in the documentation, otherwise good work @OskarLiew! |
Description
Added new MVG specific errors. In particular
MVGAPIError
that will automatically read the details of the error messageNew dependencies: (Added to requirements_*.txt)
Fixes #43 (potential issues that are fixed by this PR)
Type of Change
Checklist
Requirements