Hi Larry

On Fri, Jul 11, 2014 at 9:37 PM, Larry Martell <[email protected]>
wrote:

> On Thu, Jul 10, 2014 at 8:35 PM, Russell Keith-Magee
> <[email protected]> wrote:
>
> I appreciate the detailed reply, and I think I understand all this,
> but I still cannot get my tests to run. Let's look at one test.
>
> My tests are in this dir: /usr/local/motor/motor/app/cdsem/tests
>

Ok -

 * Do you have an __init__.py in the cdsem/tests directory?

 * Which directory is manage.py in?

 * What's your PYTHONPATH?

I have a suspicion that the problem might be caused by your directory
structure. There's a few more directories there than I would expect to see,
which suggests to me that there might be problem with the interaction of
PYTHONPATH with manage.py.

One way that might help diagnose the problem:

./manage.py test -v 2

This turns up the verbosity on the full test suite, and will tell you the
test paths that are being executed. When it runs, you'll see lines like:

test_other_size (lillee.tests.WidgetTestCase) ... ok
test_resize (lillee.tests.WidgetTestCase) ... ok

That tells you the path that is being discovered, which you can put back
into ./manage.py to run the test.

./manage.py test lillee.tests.WidgetTestCase.test_resize

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84-kPHO%3DiEAVp%2BR8r%2BR-XUzKjBgcSUKzDa%3D9Fy4SqC%3D9jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to