]> git.ozlabs.org Git - patchwork/commitdiff
tests: Move 'reverse' calls inside 'setUp'
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 21 Aug 2015 14:32:11 +0000 (15:32 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 18 Sep 2015 14:51:13 +0000 (15:51 +0100)
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.

Acked-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>

No differences found