Hi all, I hope this is the right place to ask the following.
I am currently using https://github.com/ropez/pytest-describe to group
tests in a large test suite because it looks nicer than using classes
and looks more like the tests in the JavaScript library that I am
recreating in Python.
I'd even be more than ok with a context manager approach and even using
asserts within the context manager.
As long as you can have more than one assert fail within the context.
-Brian
On Fri, Mar 27, 2020 at 9:30 AM Brian Okken
wrote:
> Victor,
>
> This would be brilliant. There is a fairly
Victor,
This would be brilliant. There is a fairly large need for a soft assert
feature.
pytest-check would not be needed if it existed.
I personally would not want it to be an overriding of assert, but perhaps a
different function that is used almost identically to assert, including
failing the
Yes exactly, we're aligned. Thanks Victor.
On Fri, 27 Mar 2020 at 12:19, Victor Maryama
wrote:
> Oh sure, I see now what you mean.
>
> Back then when I was thinking about this subject it seemed to me that soft
> assertions could be something implemented in pytest core itself using the
>
Oh sure, I see now what you mean.
Back then when I was thinking about this subject it seemed to me that soft
assertions could be something implemented in pytest core itself using the
assertion rewriting module (which in turn would put the assertion calls
around the context manager), along the
What about pytest-assume as a context manager around the assert line?
That way you get the soft assertions feature and pytest still rewrites the
assertions.
On Fri, Mar 27, 2020, 12:47 PM Bruno Oliveira wrote:
> Hi Maximilian,
>
> On Thu, Mar 26, 2020 at 7:29 PM Maximilian Roos
> wrote:
>
>>
Hi Maximilian,
On Thu, Mar 26, 2020 at 7:29 PM Maximilian Roos
wrote:
>
> To prefix: as a long time user and evangelizer of pytest, a big thank you
> for the superb tool.
>
Thanks for the kind words, we appreciate it.
> As per that README, it only works on the first failure, because the test