#3994: doctest in projects with models split into seperate files not working
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Unit test
system
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Comment (by [EMAIL PROTECTED]):
Sure, let just let me know what you need as far as specifics, here is a
(not so) minimal overall example.
* Start project 'blah'
* Start app foo & add to settings.py (and setup your db of course)
* Enter foo
* Remove models.py
* mkdir models
* Enter foo/models
* Create file foo/models/Blog.py
{{{
from dhango.db import models
class Blog(models.Model):
"""
A blog.
>>> b = Blog.objects.create(title="Great post", body="Wow, that was
great.")
>>> b.title=="Great post"
True
"""
title = models.CharField(maxlength=50)
body = models.TextField()
class Meta:
app_label='foo'
}}}
... (spam bot is hating) ...
--
Ticket URL: <http://code.djangoproject.com/ticket/3994#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---