Author: russellm
Date: 2007-08-17 09:02:40 -0500 (Fri, 17 Aug 2007)
New Revision: 5915
Modified:
django/trunk/tests/modeltests/fixtures/models.py
Log:
Minor fix to get the fixure model test to pass in the new management framework.
Modified: django/trunk/tests/modeltests/fixtures/models.py
===================================================================
--- django/trunk/tests/modeltests/fixtures/models.py 2007-08-17 12:29:08 UTC
(rev 5914)
+++ django/trunk/tests/modeltests/fixtures/models.py 2007-08-17 14:02:40 UTC
(rev 5915)
@@ -73,7 +73,7 @@
[<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>,
<Article: Python program becomes self aware>]
# Dump the current contents of the database as a JSON fixture
->>> print management.call_command('dumpdata', 'fixtures', format='json')
+>>> management.call_command('dumpdata', 'fixtures', format='json')
[{"pk": "3", "model": "fixtures.article", "fields": {"headline": "Time to
reform copyright", "pub_date": "2006-06-16 13:00:00"}}, {"pk": "2", "model":
"fixtures.article", "fields": {"headline": "Poker has no place on ESPN",
"pub_date": "2006-06-16 12:00:00"}}, {"pk": "1", "model": "fixtures.article",
"fields": {"headline": "Python program becomes self aware", "pub_date":
"2006-06-16 11:00:00"}}]
"""}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---