On Tue, Oct 21, 2008 at 12:28 PM, Mark Ramm <[EMAIL PROTECTED]> wrote:
>
>> Could we document some of the new test.
>
> Run them the same way you ran the tg2 tests before, they aren't yet
> separated out, and probably won't be for a while. So just type:
>
> nosetests
you mean:
python setup.py nosetests ????
FAILED (errors=6, failures=2) on debian amd64
======================================================================
ERROR: tg.tests.test_stack.test_config.test_basic_stack
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 48, in test_basic_stack
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
ERROR: tg.tests.test_stack.test_config.test_config_reading
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 53, in test_config_reading
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
ERROR: tg.tests.test_stack.test_config.test_config_writing
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 62, in test_config_writing
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
ERROR: tg.tests.test_stack.test_config.test_basic_stack
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 48, in test_basic_stack
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
ERROR: tg.tests.test_stack.test_config.test_config_reading
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 53, in test_config_reading
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
ERROR: tg.tests.test_stack.test_config.test_config_writing
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/lucas/tmp/tg2env/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
self.test(*self.arg)
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 62, in test_config_writing
app = setup_noDB()
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_stack/test_config.py",
line 44, in setup_noDB
app = TestApp(app_maker(global_config, full_stack=True))
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 403, in
make_base_app
app = self.add_tm_middleware(app)
File "/home/lucas/tmp/tg2/trunk/tg/configuration.py", line 344, in
add_tm_middleware
from repoze.tm import make_tm
ImportError: No module named tm
======================================================================
FAIL: Test expiry of cached results for decorated functions.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_caching.py", line 125,
in test_simple
assert resp.body == 'cached foo1'
AssertionError:
<tg.tests.test_caching.MockTime instance at 0x1e1e128>.set_time(0)
{'expiry': u'foo2', 'DecoratorController.simple':
'foo1'}['DecoratorController.simple'] = 'foo1'
<Response 200 OK 'cached foo2'> = self.app.get('/simple/')
>> assert <Response 200 OK 'cached foo2'>.body == 'cached foo1'
<tg.tests.test_caching.MockTime instance at 0x1e1e128>.set_time(1)
{'expiry': u'foo2', 'DecoratorController.simple':
'foo1'}['DecoratorController.simple'] = 'foo2'
======================================================================
FAIL: test that values expire from a single cache key.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lucas/tmp/tg2/trunk/tg/tests/test_caching.py", line 96,
in test_expiry
assert resp.body == 'cached foo1'
AssertionError:
""" test that values expire from a single cache key. """
<tg.tests.test_caching.MockTime instance at 0x1e1e128>.set_time(0)
<Response 200 OK 'cached foo2'> = self.app.get('/expiry/',
params={'a':'foo1'})
>> assert <Response 200 OK 'cached foo2'>.body == 'cached foo1'
<tg.tests.test_caching.MockTime instance at 0x1e1e128>.set_time(1)
<Response 200 OK 'cached foo2'> = self.app.get('/expiry/',
params={'a':'foo2'})
----------------------------------------------------------------------
Ran 96 tests in 2.121s
FAILED (errors=6, failures=2)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---