Hello, just working on some write-ups about TurboGears and I wanted to
mention the out-of-the-box testing that it includes. I have 2
questions about what is available in the 0.9a release...
1. I just did a quickstart but my projects tests are broken by default
due to the Identity tests that are included in the project. Is this
the desired result?
In my opinion, I think its great that you include some basic, sample
tests but I think it would be better if they worked without figuring
out how to turn on the identity components. Below is the result I got:
python setup.py testgears
"c:\python24\lib\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].
2. I have read that "nose" is going to be replacing testgears.
Unfortunately, running "nosetests" from the top project fold also
causes my config.py file to not work correctly. Is this the correct
way of testing? Below is the failure I got from running nosetests:
Traceback (most recent call last):
File "c:\python24\lib\site-packages\nose-0.8.7.1-py2.4.egg\nose\core.py",
line 423, in run
self.setUp()
File "c:\python24\lib\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 "c:\python24\lib\site-packages\nose-0.8.7.1-py2.4.egg\nose\core.py",
line 280, in _import
return nose.importer._import(name, [path])
File "c:\python24\lib\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 "W:\articles\My-Project\myproject\config.py", line 107, in ?
path("/static")
NameError: name 'path' is not defined
thanks for any help you can provide...
ian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---