mirror of
https://github.com/Hopiu/django.git
synced 2026-04-22 07:44:49 +00:00
Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
This commit is contained in:
parent
6aef986cdb
commit
cacc7e85e1
1 changed files with 1 additions and 0 deletions
1
tests/fixtures/tests.py
vendored
1
tests/fixtures/tests.py
vendored
|
|
@ -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(), '')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue