mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
5ff2ffa330
commit
2c40681805
4 changed files with 31 additions and 66 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue