[PATCH v2] tests: fix assertion rewriting in some tests with pytest-3.0.0+

Mads Kiilerich mads at kiilerich.com
Tue Sep 13 21:27:34 UTC 2016


On 09/13/2016 09:54 PM, Thomas De Schampheleire wrote:
> Having the entire set under
> kallithea/tests/ seems more future-proof.
>
> It seems the trailing dot is accepted and does what I hoped it does.
> v3 is coming up...

I agree with the commit message in the posted v3, but the patch content 
doesn't seem to be what is described?

I guess the chosen solution is to have

pytest.register_assert_rewrite('kallithea.tests.')

in tests/__init__.py but move helper functions (and constants?) out and 
put them in something like common.py or base.py ?

/Mads



More information about the kallithea-general mailing list