[BUG] `Asserts` inside `with` are not really asserting anything in qililab tests.
Closed this issue · 4 comments
GuillermoAbadLopez commented
GuillermoAbadLopez commented
What acuatlly is happening :
The error makes you leave the with, so the assert is never actually run
(I just debugged this, and its true, you never arrive to the assert, since the erro makes you leave the with)
AlbertMitjans commented
To be more precise, this only happens when using with pytest.raises
.
AlbertMitjans commented
If this is fixed, please close the issue.
GuillermoAbadLopez commented
There was only one test doing this incorrectly in the end, and has been changed!
Clossing the Issue 👍