Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use built-in fixture support rather than calling loaddata in setUp().

  • Loading branch information...
commit 509798ae069064181e3d70d155812cbe02331490 1 parent 86b9603
@carljm carljm authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 tests/modeltests/proxy_models/tests.py
View
4 tests/modeltests/proxy_models/tests.py
@@ -364,9 +364,7 @@ def test_proxy_load_from_fixture(self):
class ProxyModelAdminTests(TestCase):
- def setUp(self):
- management.call_command('loaddata', 'myhorses.json', verbosity=0,
- commit=False)
+ fixtures = ['myhorses']
def test_cascade_delete_proxy_model_admin_warning(self):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.