From 8766d4ebc4f742d4d396f5046f6ecfdfd19f73e8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 21 Aug 2015 15:32:14 +0100 Subject: trivial: Remove dead imports from 'tests' Remove some unused imports. This keeps PEP8 happy. Reviewed-by: Damien Lespiau Signed-off-by: Stephen Finucane Signed-off-by: Damien Lespiau --- patchwork/tests/test_confirm.py | 1 - patchwork/tests/test_mail_settings.py | 3 --- patchwork/tests/test_notifications.py | 4 +--- patchwork/tests/test_user.py | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/patchwork/tests/test_confirm.py b/patchwork/tests/test_confirm.py index fad5125..9fe938e 100644 --- a/patchwork/tests/test_confirm.py +++ b/patchwork/tests/test_confirm.py @@ -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 diff --git a/patchwork/tests/test_mail_settings.py b/patchwork/tests/test_mail_settings.py index a193c97..35c832a 100644 --- a/patchwork/tests/test_mail_settings.py +++ b/patchwork/tests/test_mail_settings.py @@ -17,13 +17,10 @@ # 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 diff --git a/patchwork/tests/test_notifications.py b/patchwork/tests/test_notifications.py index c46af61..37adb8d 100644 --- a/patchwork/tests/test_notifications.py +++ b/patchwork/tests/test_notifications.py @@ -19,12 +19,10 @@ 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): diff --git a/patchwork/tests/test_user.py b/patchwork/tests/test_user.py index 9eeda7f..8bef45a 100644 --- a/patchwork/tests/test_user.py +++ b/patchwork/tests/test_user.py @@ -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 -- cgit v1.2.3