]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Clean up 'test_notifications'
authorStephen Finucane <stephen.finucane@intel.com>
Tue, 21 Jun 2016 08:20:42 +0000 (09:20 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 30 Jun 2016 15:05:06 +0000 (16:05 +0100)
commitb1559f77b869758ffb9c8c1f88d47c8b63f127f8
treecd9d7fd3a0ff8143e51f594bf4a50f9ad4b5b7ec
parent4b7145bffaeb5f1f066c1a921e344d76cf9fd64d
tests: Clean up 'test_notifications'

* 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_notifications.py