Loading tests/fixtures/tests.py +3 −0 Original line number Diff line number Diff line from __future__ import unicode_literals import os import tempfile import warnings from django.apps import apps Loading Loading @@ -46,6 +47,8 @@ class DumpDataAssertMixin(object): natural_foreign_keys=False, natural_primary_keys=False, use_base_manager=False, exclude_list=[], primary_keys=''): new_io = six.StringIO() if filename: filename = os.path.join(tempfile.gettempdir(), filename) management.call_command('dumpdata', *args, **{'format': format, 'stdout': new_io, 'stderr': new_io, Loading Loading
tests/fixtures/tests.py +3 −0 Original line number Diff line number Diff line from __future__ import unicode_literals import os import tempfile import warnings from django.apps import apps Loading Loading @@ -46,6 +47,8 @@ class DumpDataAssertMixin(object): natural_foreign_keys=False, natural_primary_keys=False, use_base_manager=False, exclude_list=[], primary_keys=''): new_io = six.StringIO() if filename: filename = os.path.join(tempfile.gettempdir(), filename) management.call_command('dumpdata', *args, **{'format': format, 'stdout': new_io, 'stderr': new_io, Loading