mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
@@ -6,7 +6,6 @@ from django.forms.models import (
|
||||
)
|
||||
from django.forms.utils import ErrorDict, ErrorList
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
|
||||
from .models import (
|
||||
Host, Manager, Network, ProfileNetwork, Restaurant, User, UserProfile,
|
||||
@@ -56,7 +55,7 @@ class InlineFormsetTests(TestCase):
|
||||
'usersite_set-TOTAL_FORMS': '1',
|
||||
'usersite_set-INITIAL_FORMS': '1',
|
||||
'usersite_set-MAX_NUM_FORMS': '0',
|
||||
'usersite_set-0-id': six.text_type(usersite[0]['id']),
|
||||
'usersite_set-0-id': str(usersite[0]['id']),
|
||||
'usersite_set-0-data': '11',
|
||||
'usersite_set-0-user': 'apollo13'
|
||||
}
|
||||
@@ -74,7 +73,7 @@ class InlineFormsetTests(TestCase):
|
||||
'usersite_set-TOTAL_FORMS': '2',
|
||||
'usersite_set-INITIAL_FORMS': '1',
|
||||
'usersite_set-MAX_NUM_FORMS': '0',
|
||||
'usersite_set-0-id': six.text_type(usersite[0]['id']),
|
||||
'usersite_set-0-id': str(usersite[0]['id']),
|
||||
'usersite_set-0-data': '11',
|
||||
'usersite_set-0-user': 'apollo13',
|
||||
'usersite_set-1-data': '42',
|
||||
@@ -129,7 +128,7 @@ class InlineFormsetTests(TestCase):
|
||||
'manager_set-TOTAL_FORMS': '1',
|
||||
'manager_set-INITIAL_FORMS': '1',
|
||||
'manager_set-MAX_NUM_FORMS': '0',
|
||||
'manager_set-0-id': six.text_type(manager[0]['id']),
|
||||
'manager_set-0-id': str(manager[0]['id']),
|
||||
'manager_set-0-name': 'Terry Gilliam'
|
||||
}
|
||||
form_set = FormSet(data, instance=restaurant)
|
||||
@@ -145,7 +144,7 @@ class InlineFormsetTests(TestCase):
|
||||
'manager_set-TOTAL_FORMS': '2',
|
||||
'manager_set-INITIAL_FORMS': '1',
|
||||
'manager_set-MAX_NUM_FORMS': '0',
|
||||
'manager_set-0-id': six.text_type(manager[0]['id']),
|
||||
'manager_set-0-id': str(manager[0]['id']),
|
||||
'manager_set-0-name': 'Terry Gilliam',
|
||||
'manager_set-1-name': 'John Cleese'
|
||||
}
|
||||
@@ -226,7 +225,7 @@ class InlineFormsetTests(TestCase):
|
||||
'host_set-TOTAL_FORMS': '2',
|
||||
'host_set-INITIAL_FORMS': '1',
|
||||
'host_set-MAX_NUM_FORMS': '0',
|
||||
'host_set-0-id': six.text_type(host1.id),
|
||||
'host_set-0-id': str(host1.id),
|
||||
'host_set-0-hostname': 'tranquility.hub.dal.net',
|
||||
'host_set-1-hostname': 'matrix.de.eu.dal.net'
|
||||
}
|
||||
@@ -505,7 +504,7 @@ class RedeleteTests(TestCase):
|
||||
'usersite_set-TOTAL_FORMS': '1',
|
||||
'usersite_set-INITIAL_FORMS': '1',
|
||||
'usersite_set-MAX_NUM_FORMS': '1',
|
||||
'usersite_set-0-id': six.text_type(us.pk),
|
||||
'usersite_set-0-id': str(us.pk),
|
||||
'usersite_set-0-data': '7',
|
||||
'usersite_set-0-user': 'foo',
|
||||
'usersite_set-0-DELETE': '1'
|
||||
@@ -531,7 +530,7 @@ class RedeleteTests(TestCase):
|
||||
'usersite_set-TOTAL_FORMS': '1',
|
||||
'usersite_set-INITIAL_FORMS': '1',
|
||||
'usersite_set-MAX_NUM_FORMS': '1',
|
||||
'usersite_set-0-id': six.text_type(us.pk),
|
||||
'usersite_set-0-id': str(us.pk),
|
||||
'usersite_set-0-data': '7',
|
||||
'usersite_set-0-user': 'foo',
|
||||
'usersite_set-0-DELETE': '1'
|
||||
|
||||
Reference in New Issue
Block a user