]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Clean up 'test_encodings'
authorStephen Finucane <stephen.finucane@intel.com>
Mon, 20 Jun 2016 14:07:50 +0000 (15:07 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 30 Jun 2016 15:04:47 +0000 (16:04 +0100)
commitfaf25f233863fcfe556fd6e10b339e72966519a3
tree55b203814aca71e4f5a6a20643abb2717f8fde8c
parenteebff6928c9675ce5d3a430460b6726160c63d53
tests: Clean up 'test_encodings'

* Don't use hardcode routes: use the reverse function instead
* Make use of 'create_' helper functions
* Remove unneeded 'XXX.objects.delete()' calls (all objects are deleted
  on teardown of each test)
* Include every import on its own line
* Use underscore_case, rather than camelCase

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