[PATCH v2 07/16] tests: Move 'reverse' calls inside 'setUp'

Damien Lespiau damien.lespiau at intel.com
Fri Sep 18 02:46:20 AEST 2015

On Fri, Aug 21, 2015 at 03:32:11PM +0100, Stephen Finucane wrote:
> Django creates test databases after it loads tests. However, any
> operations that exist at class level will be executed before this
> database is created. Fix the instances of this issue (mostly 'reverse'
> calls or similar) by moving the calls into the relevant 'setUp'
> functions for each test.
> Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>

I still don't get why the reverse() calls at the class level are
problematic as they don't do any DB operation, mind enlightening me?


More information about the Patchwork mailing list