Re: [pytest-dev] Using pytest_assertrepr_compare() for marked tests only?

2019-05-13 Thread Floris Bruynooghe
Hi Shawn, On Sun 12 May 2019 at 19:44 -0400, Shawn Brown wrote: > I'm playing with the idea of returning a custom explanation for tests with > a particular marker but returning Pytest's standard explanation for tests > without the marker. Interesting, would you mind describing your usecase a bit

Re: [pytest-dev] Using pytest_assertrepr_compare() for marked tests only?

2019-05-13 Thread Florian Bruhin
On Sun, May 12, 2019 at 07:44:01PM -0400, Shawn Brown wrote: > So I have a few related questions I'm hoping someone can help me with: > > Q: Is there a way to reference the current test from within > pytest_assertrepr_compare()? > > Q: If not, is there a decent way to implement something like thi