Hi, I'm just getting around to trying the 1.1 branch, and I was having
some difficulties with getting unit tests to work.  Here are some of
the relevant files.

test_controllers.py  http://paste.turbogears.org/paste/2144
test_model.py  http://paste.turbogears.org/paste/2145

>From the root application directory, I can do

> nosetests paperdex.tests.test_controllers
and
> nosetests paperdex.tests.test_model

But, a plain 'nosetests' gives me a couple different errors. An
example from controllers:

======================================================================
ERROR: The indexpage should have the right title
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/plewis/Programming/TurboGears/paperdex/paperdex/tests/
test_controllers.py", line 12, in setUp
    turbogears.startup.startTurboGears()
  File "/Users/plewis/Programming/turbogears_svn/branches/1.1/
turbogears/startup.py", line 234, in startTurboGears
    ext.start_extension()
  File "/Users/plewis/Programming/turbogears_svn/branches/1.1/
turbogears/visit/api.py", line 133, in start_extension
    create_extension_model()
  File "/Users/plewis/Programming/turbogears_svn/branches/1.1/
turbogears/visit/api.py", line 151, in create_extension_model
    _manager.create_model()
  File "/Users/plewis/Programming/turbogears_svn/branches/1.1/
turbogears/visit/savisit.py", line 39, in create_model
    class_mapper(visit_class).local_table.create(checkfirst=True)
  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 'Visit' entity name 'None' has no mapper
associated with it

>From the model:
======================================================================
ERROR: Object creation should set the name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/plewis/Programming/TurboGears/paperdex/paperdex/tests/
test_model.py", line 27, in setUp
    create_all()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Elixir-0.5.1-py2.5.egg/elixir/__init__.py",
line 99, in create_all
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/sqlalchemy/
schema.py", line 1231, in create_all
    bind = self._get_bind(raiseerr=True)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/sqlalchemy/
schema.py", line 1256, in _get_bind
    raise exceptions.InvalidRequestError("This SchemaItem is not
connected to any Engine or Connection.")
InvalidRequestError: This SchemaItem is not connected to any Engine or
Connection.

----------------------------------------------------------------------

Any thoughts or pointers would be appreciated; I've been looking at
this far too long. Thanks.
--~--~---------~--~----~------------~-------~--~----~
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