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

Increase specificity of exception checks in test_warps_usage #401

Open
rg936672 opened this issue Sep 17, 2024 · 0 comments
Open

Increase specificity of exception checks in test_warps_usage #401

rg936672 opened this issue Sep 17, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@rg936672
Copy link
Contributor

What's the issue?

Currently, in test_warps_usage, we run two blocks of code with with self.assertRaises(Exception):.

Replace these with an assertRaisesRegex that checks for a specific error class and a specific error message. If the error message is too generic, replace it with one that is more informative to an end user.

@rg936672 rg936672 added new Something yet to be discussed by development team documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers and removed new Something yet to be discussed by development team labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant