1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed test_dumpdata_progressbar to use the instantiated StringIO object.

This commit is contained in:
Jon Dufresne 2016-03-13 17:19:46 -07:00 committed by Tim Graham
parent 6aef986cdb
commit cacc7e85e1

View File

@ -475,6 +475,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
options['verbosity'] = 0
new_io = six.StringIO()
new_io.isatty = lambda: True
options.update({'stdout': new_io, 'stderr': new_io})
management.call_command('dumpdata', 'fixtures', **options)
self.assertEqual(new_io.getvalue(), '')