mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed unneeded force_text calls in the test suite
This commit is contained in:
3
tests/fixtures/tests.py
vendored
3
tests/fixtures/tests.py
vendored
@@ -15,7 +15,6 @@ from django.core.management.commands.dumpdata import ProxyModelWarning
|
||||
from django.core.serializers.base import ProgressBar
|
||||
from django.db import IntegrityError, connection
|
||||
from django.test import TestCase, TransactionTestCase, skipUnlessDBFeature
|
||||
from django.utils.encoding import force_text
|
||||
|
||||
from .models import (
|
||||
Article, Category, PrimaryKeyUUIDModel, ProxySpy, Spy, Tag, Visa,
|
||||
@@ -584,7 +583,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
def test_loaddata_verbosity_three(self):
|
||||
output = StringIO()
|
||||
management.call_command('loaddata', 'fixture1.json', verbosity=3, stdout=output, stderr=output)
|
||||
command_output = force_text(output.getvalue())
|
||||
command_output = output.getvalue()
|
||||
self.assertIn(
|
||||
"\rProcessed 1 object(s).\rProcessed 2 object(s)."
|
||||
"\rProcessed 3 object(s).\rProcessed 4 object(s).\n",
|
||||
|
||||
Reference in New Issue
Block a user