On Mar 4, 5:25 am, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Patrick Lewis schrieb:
>
> > But, a plain 'nosetests' gives me a couple different errors. An
> > example from controllers:
>
> > Any thoughts or pointers would be appreciated; I've been looking at
> > this far too long. Thanks.
>
> Ran your tests (except the salt thing which is not standard) with a
> quickstarted project, Py 2.5, SA 0.4.1, Exr 0.5.1 - no problems here.
>
> - Did you check out the HEAD of the 1.1 branch?
> - Which nosetests version are you using?
> - How does your model.py look like?
>
> -- Christoph

Yes, from head of SVN for the 1.1 branch. Nosetests was 0.10.0; I just
upgraded 0.10.1. All other versions are as you list above.

I quickstarted a new project, copied my test modules to the new
project (commenting out the testPassword model test), and from the
application root directory (same directory as setup.py and test.cfg)
ran 'nosetests'.  The 3 controller tests passed, but the 3 model tests
all failed with some variation of:

======================================================================
ERROR: testPassword (oneonetests.tests.test_model.TestMyUser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/plewis/Programming/TurboGears/oneonetests/oneonetests/
tests/test_model.py", line 61, in setUp
    self.user = self.createUser()
  File "/Users/plewis/Programming/TurboGears/oneonetests/oneonetests/
tests/test_model.py", line 54, in createUser
    u.password = 'secret'
  File "/Users/plewis/Programming/TurboGears/paperdex/paperdex/model/
identity.py", line 86, in __set_password
    self._password = identity._encrypt_password('sha1', pw +
self.salt)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/sqlalchemy/sql/
expression.py", line 1113, in __radd__
    return self.reverse_operate(operators.add, other)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/sqlalchemy/orm/
mapper.py", line 556, in __getattribute__
    class_mapper(cls)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/sqlalchemy/orm/
mapper.py", line 1649, in class_mapper
    raise exceptions.InvalidRequestError("Class '%s' entity name '%s'
has no mapper associated with it" % (class_.__name__, entity_name))
InvalidRequestError: Class 'User' entity name 'None' has no mapper
associated with it
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to