<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2014 22:44, Floris Bruynooghe <span dir="ltr"><<a href="mailto:flub@devork.be" target="_blank">flub@devork.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
> I think you could subvert py.test's tear-fixtures-down-early by making<br>
> your session scoped fixture an autouse fixture, that way all tests<br>
> will need it to run and it won't be torn down early. However only<br>
> tests explicitly requesting the fixture will be bothered with it's<br>
> existence and value.<br></div></div></blockquote><div><br></div>that's very nice idea, actually!<div>but with this approach we kinda eliminate the beauty of the dependency injection</div><div>also imagine: we have 5 application fixtures, which are heavy to start</div><div>then we have distributed test run, where are groups of the tests using mostly one application fixture per group</div><div>for certain test slave it will have no sense to set up all the application fixtures, if this slave works on a set of tests including only one-two test groups </div></div><div><br></div>-- <br><div dir="ltr">Anatoly Bubenkov<br></div>
</div></div>