-
-
Notifications
You must be signed in to change notification settings - Fork 281
[test] check the error code when raising System Exit #128
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
Comments
Yes, custom exceptions makes sense. But this would be a breaking change, we can schedule it for 2.0 |
Maybe we can fix it in two steps. The first step is to check only the error code and merge it into |
To be honest, I don't see much value in adding the checks for So I say we don't waste time on it (be my guest if you want to do it, but I don't think it really adds value). And refactor into more expressive custom exceptions for 2.0 |
Yes, that makes sense. Do we have any plan on when or how we release 2.0? Maybe a branch |
I've created a branch |
I think the error code is quite useful when I use some of the new features recently. I'm thinking of refactoring these errors into classes but still have the same error code which makes it a non-breaking change. @woile What do you think? |
Great idea! Go for it! |
@Lee-W can we close this ticket? |
Ah yes, I forgot it haha. Let's close it! |
Goal
make unit tests more accurate
Description
In tests/commands/test_bump_command.py#L86, we do not check the error code. It's possible to raise the same exception but not our expected case. Maybe we should refactor them as custom exceptions?
The text was updated successfully, but these errors were encountered: