mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.9.x] Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
Backport of cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 from master
This commit is contained in:
parent
27bed94e9c
commit
bf7a35c329
1
tests/fixtures/tests.py
vendored
1
tests/fixtures/tests.py
vendored
@ -478,6 +478,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(), '')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user