]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Don't create model objects unless necessary
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 30 Jun 2016 17:30:27 +0000 (18:30 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 12 Jul 2016 14:58:44 +0000 (15:58 +0100)
commit1347547654aafc6e80c3b8dfcf047329c2f4e2cc
tree6da769f5e67a99a48c98a05001d6635fa29629d3
parent1fa6756bbfc251fe069ad68b358b32b5181992c3
tests: Don't create model objects unless necessary

Creating model objects when not required introduces unnecessary
overhead and delays the tests. Avoid this by only creating new objects
when one isn't provided for us already.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/tests/utils.py