I am trying to upgrade a site to 1.6. I read the change notes about
the tests now having to start with test.

My project's structure is this:

myproj/app/appname/tests

and in that dir was a file called EventLog.py, and in that file a
function called EventLogTest

My __init__ had:

from myproj.app.appname.tests.EventLog import EventLogTest

I would run the test with:

manage.py test appname.EventLogTest

I reanmed EventLog.py to testEventLog.py, and I also changed it in the
__init__ file to:

from myproj.app.appname.tests.testEventLog import EventLogTest

Then I tried:

manage.py test appname.EventLogTest

ImportError: No module named appname

manage.py test app.appname.EventLogTest

ImportError: No module named app

manage.py test myproj.app.appname.EventLogTest

AttributeError: 'module' object has no attribute 'EventLogTest'

manage.py test myproj.app.appname.tests.EventLogTest

AttributeError: 'module' object has no attribute 'tests'


What simple, stupid thing I am doing wrong here? What do I have to do
to run my tests in 1.6?


Thanks!
-larry

-- 
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/CACwCsY7RC9xGUaUOYgyxZ%3Dg%2Bqm7KYEtfYBH%3DNW8rBgFfW%3DeZ%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to