]> git.ozlabs.org Git - patchwork/commit
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)
commit41552cccbac7de60394e78a2017e26b759ac5157
treeac033e2d035b9b9ed5d41c8dd1d93a8664a177a4
parent6c3a5e8d294fdc5eacebffb30fe5379c377e66bc
tests: Move 'reverse' calls inside 'setUp'

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>
patchwork/tests/test_mail_settings.py
patchwork/tests/test_user.py