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

Allow matching on exc_info #26

Open
etianen opened this issue Jan 23, 2024 · 0 comments
Open

Allow matching on exc_info #26

etianen opened this issue Jan 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@etianen
Copy link
Owner

etianen commented Jan 23, 2024

This would allow asserting that an exception had been logged. Supporting bool | BaseException for the match would be ideal.

  • False - No exception
  • True - Any exceptiom
  • BaseException - Equality
  • None - Anything

A logged.exception() helper would complete the feature.

@etianen etianen added the enhancement New feature or request label Jan 23, 2024
etianen added a commit that referenced this issue Feb 25, 2024
This will make adding new features such as #25, #26 and #80 easier.

It also opens the door to #31 and #124, if desired in future.
etianen added a commit that referenced this issue Feb 25, 2024
This reduces LOC and manual boilerplate for `__eq__` and `__init__`.

This will make adding new features such as #25, #26 and #80 easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant