Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Add unit tests for ImportError handling and ValidationError on unbound SocketPath#10555
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This commit introduces a unit test that verifies a ValidationError is raised when the provided path is not bound by a socket.
This commit introduces unit tests to verify the proper handling of ImportError scenarios related to the email-validator package. Specifically, it tests:- The expected ImportError when email-validator is not installed- The handling of ImportError when there is an invalid installation of email-validator
CodSpeed Performance ReportMerging#10555 willnot alter performanceComparing Summary
|
please review |
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.
Nice work!!
Thanks for the help here :)
114c914
intopydantic:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Change Summary
This PR introduces new unit tests to enhance the test coverage by covering the following scenarios:
ValidationError for Unbound SocketPath:
Added a unit test to verify that a
ValidationError
is raised when the provided path is not bound by a socket. This ensures that the application correctly handles and reports errors related to unbound socket paths.ImportError Handling for email-validator
Introduced unit tests to verify the proper handling of ImportError scenarios related to the email-validator package. Specifically, the tests cover:
ImportError
whenemail-validator
is not installed.ImportError
when there is an invalid installation ofemail-validator
.Related to#7656
Checklist
Selected Reviewer:@sydney-runkle