Skip to content

Conversation

tkasuz
Copy link
Contributor

@tkasuz tkasuz commented Oct 5, 2024

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:

  • The expected ImportError when email-validator is not installed.
  • The handling of ImportError when there is an invalid installation of email-validator.

Related to #7656

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @sydney-runkle

tkasuz added 2 commits October 5, 2024 10:12
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
@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Oct 5, 2024
Copy link

codspeed-hq bot commented Oct 5, 2024

CodSpeed Performance Report

Merging #10555 will not alter performance

Comparing tkasuz:increase_types_test_coverage (0adb62a) with main (eda3eb4)

Summary

✅ 38 untouched benchmarks

Copy link
Contributor

github-actions bot commented Oct 5, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@tkasuz
Copy link
Contributor Author

tkasuz commented Oct 5, 2024

please review

Copy link
Contributor

@sydney-runkle sydney-runkle left a 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 :)

@sydney-runkle sydney-runkle added relnotes-ignore Omit this PR from the release notes. and removed relnotes-fix Used for bugfixes. labels Oct 7, 2024
@sydney-runkle sydney-runkle merged commit 114c914 into pydantic:main Oct 7, 2024
60 checks passed
@tkasuz tkasuz deleted the increase_types_test_coverage branch November 4, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review relnotes-ignore Omit this PR from the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants