Skip to content

Commit 41438e5

Browse files
committed
Fixed some bytes/str issues and unused imports.
- Legacy-Id: 16391
1 parent 0a047e1 commit 41438e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/stats/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from django.urls import reverse as urlreverse
1313
from django.contrib.auth.models import User
1414

15-
from ietf.utils.test_utils import login_testing_unauthorized, TestCase, unicontent
15+
from ietf.utils.test_utils import login_testing_unauthorized, TestCase
1616
import ietf.stats.views
1717

1818
from ietf.submit.models import Submission
@@ -214,7 +214,7 @@ def test_get_meeting_registration_data(self, mock_get):
214214
'''Test function to get reg data. Confirm leading/trailing spaces stripped'''
215215
response = Response()
216216
response.status_code = 200
217-
response._content = '[{"LastName":"Smith ","FirstName":" John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
217+
response._content = b'[{"LastName":"Smith ","FirstName":" John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
218218
mock_get.return_value = response
219219
meeting = MeetingFactory(type_id='ietf', date=datetime.date(2016,7,14), number="96")
220220
get_meeting_registration_data(meeting)
@@ -226,7 +226,7 @@ def test_get_meeting_registration_data(self, mock_get):
226226
def test_get_meeting_registration_data_user_exists(self, mock_get):
227227
response = Response()
228228
response.status_code = 200
229-
response._content = '[{"LastName":"Smith","FirstName":"John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
229+
response._content = b'[{"LastName":"Smith","FirstName":"John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
230230
email = "john.doe@example.us"
231231
user = User.objects.create(username=email)
232232
user.save()

0 commit comments

Comments
 (0)