<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 31 May 2015 at 12:57, Thomas De Schampheleire <span dir="ltr"><<a href="mailto:patrickdepinguin@gmail.com" target="_blank">patrickdepinguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I've been using pytest for a while now, and think we should consider<br>
making it the default test suite instead of nose.<br>
<br>
As I see it, there are following points to do:<br>
<br>
1. silence the database setup code by default. Currently, the initial<br>
step of the tests sets up the database and all commands are passing by<br>
on the terminal. This should be silent, just like with nose.<br>
However, I don't know how to fix this correctly, and I hope Marc,<br>
Ronny or Brianna could help here.</blockquote></div><br></div><div class="gmail_extra">So I downloaded kallithea and had a bit of a poke around. My impression is that the database setup is done in kallithea/tests/conftest.py pytest_configure, specifically loadapp. While under nosetests, more or less the same is done at pylons.tests PylonsPlugin.begin. So I think the Pylons nose plugin is suppressing all output (and in fact I couldn't make it deliberately show me the output). <br><br>Whereas with pytest, I think it is not expecting test setup to be done in pytest_configure, and so the options for controlling output have no effect on what happens in this function.<br><br></div><div class="gmail_extra">So 1) Maybe pytest should be changed to allow suppression of output from pytest_configure<br></div><div class="gmail_extra">or 2) Maybe this functionality belongs under a different hook function. <br><br></div><div class="gmail_extra">With pytest style fixtures I don't think it would be a problem. However maybe there still would need to be something at this level, I don't fully understand the implications of what is written here re nosetest, maybe the same problems would occur with pytest. <a href="http://pylons-webframework.readthedocs.org/en/latest/testing.html">http://pylons-webframework.readthedocs.org/en/latest/testing.html</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers<br></div><div class="gmail_extra">Brianna<br></div><div class="gmail_extra"><br></div></div>