We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0bd62b commit 0a2a228Copy full SHA for 0a2a228
tests/test_fixtures.py
@@ -539,12 +539,12 @@ def admin_required_view(request):
539
)
540
django_testdir.makepyfile(
541
"""
542
- from django.utils.encoding import force_text
+ from django.utils.encoding import force_str
543
from tpkg.app.models import MyCustomUser
544
545
def test_custom_user_model(admin_client):
546
resp = admin_client.get('/admin-required/')
547
- assert force_text(resp.content) == 'You are an admin'
+ assert force_str(resp.content) == 'You are an admin'
548
549
550
0 commit comments