]> git.ozlabs.org Git - patchwork/commitdiff
trivial: Remove dead imports from 'tests'
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 21 Aug 2015 14:32:14 +0000 (15:32 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 17 Sep 2015 16:51:20 +0000 (17:51 +0100)
Remove some unused imports. This keeps PEP8 happy.

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

index fad5125c548dcebb04ed65b891adb6d42be17341..9fe938eae9e4e17781f56d9cee797cff3db46719 100644 (file)
@@ -17,7 +17,6 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import unittest
 from django.test import TestCase
 from django.contrib.auth.models import User
 from django.core.urlresolvers import reverse
index a193c9711375920d08a27fc131e6816f31b2a0ce..35c832ae7136ed0d32794a0b638c40d6d30a7cf1 100644 (file)
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import unittest
 import re
 from django.test import TestCase
-from django.test.client import Client
 from django.core import mail
 from django.core.urlresolvers import reverse
-from django.contrib.auth.models import User
 from patchwork.models import EmailOptout, EmailConfirmation, Person
 from patchwork.tests.utils import create_user, error_strings
 
index c46af612bbde09611df8c4c49d12d00ae93d24ab..37adb8df889cfc7a5a4f696f55206552fce2dbba 100644 (file)
 
 import datetime
 from django.test import TestCase
-from django.core.urlresolvers import reverse
 from django.core import mail
 from django.conf import settings
-from django.db.utils import IntegrityError
 from patchwork.models import Patch, State, PatchChangeNotification, EmailOptout
-from patchwork.tests.utils import defaults, create_maintainer
+from patchwork.tests.utils import defaults
 from patchwork.utils import send_notifications
 
 class PatchNotificationModelTest(TestCase):
index 9eeda7f7b8c83cf470a8bd103a0a92c31c6eb70c..8bef45a746b45d49c0b3448b27e77d4575172101 100644 (file)
@@ -17,9 +17,7 @@
 # along with Patchwork; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import unittest
 from django.test import TestCase
-from django.test.client import Client
 from django.core import mail
 from django.core.urlresolvers import reverse
 from django.conf import settings