mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed unneeded force_str calls
This commit is contained in:
parent
bf1c957027
commit
dc8834cad4
44 changed files with 100 additions and 167 deletions
|
@ -15,7 +15,6 @@ from django.core.management import call_command
|
|||
from django.core.management.base import CommandError
|
||||
from django.db import migrations
|
||||
from django.test import TestCase, mock, override_settings
|
||||
from django.utils.encoding import force_str
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .models import (
|
||||
|
@ -44,7 +43,7 @@ def mock_inputs(inputs):
|
|||
assert str('__proxy__') not in prompt
|
||||
response = ''
|
||||
for key, val in inputs.items():
|
||||
if force_str(key) in prompt.lower():
|
||||
if key in prompt.lower():
|
||||
response = val
|
||||
break
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue