I take that back. Not resolved.
My directory structure looks like this:
/appname/models.py
/appname/utils/__init__.py (empty)
/appname/utils/util1.py
in util1.py, I do this:
from appname.models import Class1, Class2
This causes the doctests in models.py to not run.
If I change util1.py to:
f
Thanks for the note. I actually just resolved this.
I had created a module that resided in the appname directory, and was
importing via: from appname.models import *
I changed the import to:
from projectname.appname.models import *
And tests were correctly picked up.
I think this is a bug? I
can we see your models.py?
On May 10, 9:00 pm, davenaff <[EMAIL PROTECTED]> wrote:
> It is probably also worth noting that _doctest returns correct
> (projectname.appname.models) object.__module__ values for Managers.
>
> On May 10, 5:49 pm, davenaff <[EMAIL PROTECTED]> wrote:
>
> > As I dig int
It is probably also worth noting that _doctest returns correct
(projectname.appname.models) object.__module__ values for Managers.
On May 10, 5:49 pm, davenaff <[EMAIL PROTECTED]> wrote:
> As I dig into this, I've found that the problem is that the classes in
> my models.py file are not being r
As I dig into this, I've found that the problem is that the classes in
my models.py file are not being recognized as being from the module.
Specifically, the _from_module function in the DocTestFinder class in
_doctest.py is failing to identify the module as internal.
Upon closer inspection this
I've just begun using doctests and when I run manage.py test appname,
the doctests in the models.py file aren't running.
I have other apps in the project that have doctests that run fine.
I also have taken the models in this app and pasted them into a
different app. The doctests run fine in that
6 matches
Mail list logo