IT: replace `assert` statements with custom checkers
Opened this issue · 4 comments
678098 commented
A few reasons:
- Default
assertstatements might be disabled, they are intended to be switched on/off. - The main reason why
assertstatements are used is that it is an already existing language feature. assertstatements don't allow to set up a breakpoint to intercept any failure with a debugger. If we have a custom checker, we can have one simple place for breakpoints that allows to intercept anything.
SrinathhSatuluri commented
Hi I was wondering if I could be assigned this issue. Would love to work on this enhancement.
678098 commented
Hi @SrinathhSatuluri, this task is a bit too involved for new contributors. It also requires communicating with the team to discuss the proposal.
If you are looking for open-source contributions, I created a simpler task #968
MorganaFuture commented
678098 commented
Hi @MorganaFuture, thank you for this, assertpy looks really interesting.
I have a WIP PR where I test and evaluate a better test conditions checks #980
Will also try assertpy