Skip to content

Commit 0679eaa

Browse files
committed
Removed unused imports.
- Legacy-Id: 16402
1 parent f480799 commit 0679eaa

29 files changed

Lines changed: 79 additions & 72 deletions

ietf/api/tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright The IETF Trust 2015-2019, All Rights Reserved
22

3-
import json
43
import os
54
import sys
65

ietf/doc/tests_ballot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ietf.iesg.models import TelechatDate
2020
from ietf.person.models import Person, PersonalApiKey
2121
from ietf.person.factories import PersonFactory
22-
from ietf.utils.test_utils import TestCase, unicontent, login_testing_unauthorized
22+
from ietf.utils.test_utils import TestCase, login_testing_unauthorized
2323
from ietf.utils.mail import outbox, empty_outbox
2424
from ietf.utils.text import unwrap
2525

ietf/doc/tests_charter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ietf.group.models import Group, GroupMilestone
2121
from ietf.iesg.models import TelechatDate
2222
from ietf.person.models import Person
23-
from ietf.utils.test_utils import TestCase, unicontent
23+
from ietf.utils.test_utils import TestCase
2424
from ietf.utils.mail import outbox, empty_outbox
2525
from ietf.utils.test_utils import login_testing_unauthorized
2626

ietf/doc/tests_draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from ietf.person.models import Person, Email
2626
from ietf.meeting.models import Meeting, MeetingTypeName
2727
from ietf.iesg.models import TelechatDate
28-
from ietf.utils.test_utils import login_testing_unauthorized, unicontent
28+
from ietf.utils.test_utils import login_testing_unauthorized
2929
from ietf.utils.mail import outbox, empty_outbox
3030
from ietf.utils.test_utils import TestCase
3131

ietf/doc/tests_material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ietf.meeting.models import Meeting, Session, SessionPresentation
2020
from ietf.name.models import SessionStatusName
2121
from ietf.person.models import Person
22-
from ietf.utils.test_utils import TestCase, login_testing_unauthorized, unicontent
22+
from ietf.utils.test_utils import TestCase, login_testing_unauthorized
2323

2424

2525
class GroupMaterialTests(TestCase):

ietf/doc/views_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def search_mail_archive(request, name, assignment_id):
769769
try:
770770
res["messages"] = mailarch.retrieve_messages(res["query_data_url"])[:MAX_RESULTS]
771771
except KeyError as e:
772-
res["error"] = "No results found"
772+
res["error"] = "No results found (%s)" % str(e)
773773
except Exception as e:
774774
res["error"] = "Retrieval from mail archive failed: %s" % str(e)
775775
# raise # useful when debugging

ietf/group/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ietf.utils.test_runner import set_coverage_checking
2020
from ietf.person.factories import EmailFactory
2121
from ietf.person.models import Person
22-
from ietf.utils.test_utils import login_testing_unauthorized, TestCase, unicontent
22+
from ietf.utils.test_utils import login_testing_unauthorized, TestCase
2323

2424
if getattr(settings,'SKIP_DOT_TO_PDF', False):
2525
skip_dot_to_pdf = True

ietf/group/tests_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from django.urls import reverse as urlreverse
1010

11-
from ietf.utils.test_utils import login_testing_unauthorized, TestCase, unicontent, reload_db_objects
11+
from ietf.utils.test_utils import login_testing_unauthorized, TestCase, reload_db_objects
1212
from ietf.doc.models import TelechatDocEvent
1313
from ietf.group.models import Role
1414
from ietf.iesg.models import TelechatDate

ietf/iesg/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def agenda_json(request, date=None):
179179

180180
s["docs"].append(docinfo)
181181

182-
return HttpResponse(json.dumps(res, indent=2), content_type='text/plain')
182+
return HttpResponse(json.dumps(res, indent=2), content_type='application/json')
183183

184184
# def past_agendas(request):
185185
# # This is not particularly useful with the current way of constructing

ietf/ietfauth/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import debug # pyflakes:ignore
1616

17-
from ietf.utils.test_utils import TestCase, login_testing_unauthorized, unicontent
17+
from ietf.utils.test_utils import TestCase, login_testing_unauthorized
1818
from ietf.utils.mail import outbox, empty_outbox
1919
from ietf.group.models import Group, Role, RoleName
2020
from ietf.group.factories import GroupFactory, RoleFactory

0 commit comments

Comments
 (0)