Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 509798ae069064181e3d70d155812cbe02331490 1 parent 86b9603
Carl Meyer authored February 25, 2013

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. 4  tests/modeltests/proxy_models/tests.py
4  tests/modeltests/proxy_models/tests.py
@@ -364,9 +364,7 @@ def test_proxy_load_from_fixture(self):
364 364
 
365 365
 
366 366
 class ProxyModelAdminTests(TestCase):
367  
-    def setUp(self):
368  
-        management.call_command('loaddata', 'myhorses.json', verbosity=0,
369  
-            commit=False)
  367
+    fixtures = ['myhorses']
370 368
 
371 369
     def test_cascade_delete_proxy_model_admin_warning(self):
372 370
         """

0 notes on commit 509798a

Please sign in to comment.
Something went wrong with that request. Please try again.