Re: [pytest-dev] adopt pytest month is over!

2015-05-07 Thread Florian Schulze
Just from my experience testing more complex apps which have some framework enhancements. Don't overdo the mocking, it's far to easy to have tests which work fine with mocks, but the regular code with real objects fails. I tend to use mocking for edge cases only, where I want to test exception

Re: [pytest-dev] adopt pytest month is over!

2015-05-07 Thread AryƩ H
Hi, Our question is on the right approach to testing such a framework ? 1) start with low level unit tests and strive to mock out the DB 2) continue with higher level integration tests with a DB and data fixtures More specifically (1) What is the best way to write unit tests that need model def

Re: [pytest-dev] Working with other dependency injection systems

2015-05-07 Thread holger krekel
Hi Kai, On Thu, Apr 30, 2015 at 19:28 -0400, Kai Groner wrote: > Hi testing people! > > I'm trying to figure out how I can test a code base that uses an existing > dependency injection system. I've run into two problems, and I have > solutions for each of them but I think maybe there is a better