mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Stopped calling loaddata with commit=False.
This was a stealth option only used by the tests, and it isn't useful any more since `atomic` provides nested transactions.
This commit is contained in:
@@ -358,7 +358,7 @@ class ProxyModelTests(TestCase):
|
||||
)
|
||||
|
||||
def test_proxy_load_from_fixture(self):
|
||||
management.call_command('loaddata', 'mypeople.json', verbosity=0, commit=False)
|
||||
management.call_command('loaddata', 'mypeople.json', verbosity=0)
|
||||
p = MyPerson.objects.get(pk=100)
|
||||
self.assertEqual(p.name, 'Elvis Presley')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user