Skip to content

Commit

Permalink
Fixed bug in basic.py model unit tests caused by [1511] -- the specia…
Browse files Browse the repository at this point in the history
…l-case MySQL thing needs to be at the end of the tests

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Dec 1, 2005
1 parent 9e2eccc commit 9abc012
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/testapp/models/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ class Article(meta.Model):
>>> a8.id
8L
# You can manually specify the primary key when creating a new objet
>>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45))
>>> a101.save()
>>> a101 = articles.get_object(pk=101)
>>> a101.headline
'Article 101'
"""

from django.conf import settings
Expand All @@ -189,3 +182,13 @@ class Article(meta.Model):
>>> articles.get_object(id__exact=9).pub_date
datetime.datetime(2005, 7, 31, 12, 30, 45)
"""

API_TESTS += """
# You can manually specify the primary key when creating a new objet
>>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45))
>>> a101.save()
>>> a101 = articles.get_object(pk=101)
>>> a101.headline
'Article 101'
"""

0 comments on commit 9abc012

Please sign in to comment.