I am just wondering about why a new 0.9a1 project's unittest
failed. But running the project is ok. Did I miss something to
install or to setup?

0$ tg-admin quickstart example
Enter package name [example]:
Selected and implied templates:
  TurboGears#turbogears  web framework

Variables:
  package:  example
  project:  example
Creating template turbogears
  Creating ./example/
  Recursing into +einame+.egg-info
    Creating ./example/example.egg-info/
    Copying PKG-INFO to ./example/example.egg-info/PKG-INFO
    Copying paster_plugins.txt to ./example/example.egg-info/paster_plugins.txt
    Copying sqlobject.txt_tmpl to ./example/example.egg-info/sqlobject.txt
  Recursing into +package+
    Creating ./example/example/
    Copying __init__.py to ./example/example/__init__.py
    Copying config.py_tmpl to ./example/example/config.py
    Copying controllers.py_tmpl to ./example/example/controllers.py
    Copying model.py_tmpl to ./example/example/model.py
    Recursing into sqlobject-history
      Creating ./example/example/sqlobject-history/
      Copying empty to ./example/example/sqlobject-history/empty
    Recursing into static
      Creating ./example/example/static/
      Recursing into css
        Creating ./example/example/static/css/
        Copying empty to ./example/example/static/css/empty
      Recursing into images
        Creating ./example/example/static/images/
        Copying favicon.ico to ./example/example/static/images/favicon.ico
        Copying tg_under_the_hood.png to
./example/example/static/images/tg_under_the_hood.png
      Recursing into javascript
        Creating ./example/example/static/javascript/
        Copying empty to ./example/example/static/javascript/empty
    Recursing into templates
      Creating ./example/example/templates/
      Copying __init__.py to ./example/example/templates/__init__.py
      Copying login.kid to ./example/example/templates/login.kid
      Copying master.kid to ./example/example/templates/master.kid
      Copying welcome.kid to ./example/example/templates/welcome.kid
    Recursing into tests
      Creating ./example/example/tests/
      Copying __init__.py to ./example/example/tests/__init__.py
      Copying test_controllers.py_tmpl to
./example/example/tests/test_controllers.py
      Copying test_model.py_tmpl to ./example/example/tests/test_model.py
  Copying README.txt_tmpl to ./example/README.txt
  Copying __init__.py to ./example/__init__.py
  Copying devcfg.py_tmpl to ./example/devcfg.py
  Copying prodcfg.py_tmpl to ./example/prodcfg.py
  Copying setup.py_tmpl to ./example/setup.py
  Copying start-+package+.py_tmpl to ./example/start-example.py
Running /usr/bin/python2.4 setup.py egg_info
Adding Turbogears to paster_plugins.txt
running egg_info
writing requirements to example.egg-info/requires.txt
writing example.egg-info/PKG-INFO
writing top-level names to example.egg-info/top_level.txt
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
0$ cd example/
/home/xyb/develop/turbogears/example
0$ python2.4 setup.py test
running test
running egg_info
writing requirements to example.egg-info/requires.txt
writing example.egg-info/PKG-INFO
writing top-level names to example.egg-info/top_level.txt
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
running build_ext
ERROR
15/Mar/2006:10:38:32 CONFIG INFO Server parameters:
15/Mar/2006:10:38:32 CONFIG INFO   server.environment: development
15/Mar/2006:10:38:32 CONFIG INFO   server.log_to_screen: True
15/Mar/2006:10:38:32 CONFIG INFO   server.log_file:
15/Mar/2006:10:38:32 CONFIG INFO   server.log_tracebacks: True
15/Mar/2006:10:38:32 CONFIG INFO   server.log_request_headers: True
15/Mar/2006:10:38:32 CONFIG INFO   server.protocol_version: HTTP/1.0
15/Mar/2006:10:38:32 CONFIG INFO   server.socket_host:
15/Mar/2006:10:38:32 CONFIG INFO   server.socket_port: 8080
15/Mar/2006:10:38:32 CONFIG INFO   server.socket_file:
15/Mar/2006:10:38:32 CONFIG INFO   server.reverse_dns: False
15/Mar/2006:10:38:32 CONFIG INFO   server.socket_queue_size: 5
15/Mar/2006:10:38:32 CONFIG INFO   server.thread_pool: 0
example.tests.test_controllers.test_method ... ok
example.tests.test_controllers.test_indextitle ... 2006-03-15
10:38:32,501 turbogears.view DEBUG Loading base templates
2006-03-15 10:38:32,626 turbokid.kidsupport DEBUG Recompiling template
for turbogears.fastdata.templates.sitetemplate
2006-03-15 10:38:32,686 turbokid.kidsupport DEBUG Recompiling template
for example.templates.welcome
2006-03-15 10:38:32,763 turbokid.kidsupport DEBUG Applying template
example.templates.welcome
ok
Object creation should set the name ... ERROR

======================================================================
ERROR: test module example.config in /home/xyb/develop/turbogears/example
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/nose-0.8.7.1-py2.4.egg/nose/core.py",
line 423, in run
    self.setUp()
  File "/usr/lib/python2.4/site-packages/nose-0.8.7.1-py2.4.egg/nose/core.py",
line 651, in setUp
    self.module = self.loader._import(self.module_name, self.path)
  File "/usr/lib/python2.4/site-packages/nose-0.8.7.1-py2.4.egg/nose/core.py",
line 280, in _import
    return nose.importer._import(name, [path])
  File 
"/usr/lib/python2.4/site-packages/nose-0.8.7.1-py2.4.egg/nose/importer.py",
line 66, in _import
    mod = load_module(fqname, fh, filename, desc)
  File "/home/xyb/develop/turbogears/example/example/config.py", line 107, in ?
    path("/static")
NameError: name 'path' is not defined


======================================================================
ERROR: Object creation should set the name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/xyb/develop/turbogears/example/example/tests/test_model.py",
line 15, in test_creation
    password = "Wafer-thin Mint")
  File 
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/declarative.py",
line 92, in _wrapper
    return_value = fn(self, *args, **kwargs)
  File 
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/main.py",
line 1197, in __init__
    self._create(id, **kw)
  File 
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/inheritance/__init__.py",
line 218, in _create
    super(InheritableSQLObject, self)._create(id, **kw)
  File 
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/main.py",
line 1221, in _create
    self.set(**kw)
  File 
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/main.py",
line 1097, in set
    setattr(self, name, value)
  File 
"/usr/lib/python2.4/site-packages/TurboGears-0.9a1-py2.4.egg/turbogears/identity/soprovider.py",
line 292, in _set_password
    hash = identity.current_provider.encrypt_password(cleartext_password)
  File 
"/usr/lib/python2.4/site-packages/TurboGears-0.9a1-py2.4.egg/turbogears/identity/__init__.py",
line 74, in __getattr__
    raise IdentityManagementNotEnabledException()
IdentityManagementNotEnabledException: An attempt was made to use a
facility of the TurboGears Identity Management framework but identity
management hasn't been enabled in the config file [via identity.on].

----------------------------------------------------------------------
Ran 3 tests in 0.693s

FAILED (errors=2)
1$ python2.4 start-example.py
15/Mar/2006:10:46:04 CONFIG INFO Server parameters:
15/Mar/2006:10:46:04 CONFIG INFO   server.environment: development
15/Mar/2006:10:46:04 CONFIG INFO   server.log_to_screen: True
15/Mar/2006:10:46:04 CONFIG INFO   server.log_file:
15/Mar/2006:10:46:04 CONFIG INFO   server.log_tracebacks: True
15/Mar/2006:10:46:04 CONFIG INFO   server.log_request_headers: True
15/Mar/2006:10:46:04 CONFIG INFO   server.protocol_version: HTTP/1.0
15/Mar/2006:10:46:04 CONFIG INFO   server.socket_host:
15/Mar/2006:10:46:04 CONFIG INFO   server.socket_port: 8080
15/Mar/2006:10:46:05 CONFIG INFO   server.socket_file:
15/Mar/2006:10:46:05 CONFIG INFO   server.reverse_dns: False
15/Mar/2006:10:46:05 CONFIG INFO   server.socket_queue_size: 5
15/Mar/2006:10:46:05 CONFIG INFO   server.thread_pool: 0
15/Mar/2006:10:46:05 HTTP INFO Serving HTTP on http://localhost:8080/
15/Mar/2006:10:46:07 ENGINE INFO <Ctrl-C> hit: shutting down autoreloader
15/Mar/2006:10:46:07 ENGINE INFO <Ctrl-C> hit: shutting down autoreloader
15/Mar/2006:10:46:07 HTTP INFO HTTP Server shut down
15/Mar/2006:10:46:07 HTTP INFO HTTP Server shut down
15/Mar/2006:10:46:07 ENGINE INFO CherryPy shut down
15/Mar/2006:10:46:08 ENGINE INFO CherryPy shut down

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to