Malcolm Tredinnick wrote: > On Wed, 2007-03-07 at 02:34 +0100, Bram - Smartelectronix wrote: >> Malcolm Tredinnick wrote: >>> (2) This is the sort of thing that should come with a test to ensure we >>> don't introduce the same mistake again. Have a look in >>> tests/regressiontests/templates/tests.py for related tests and add a >>> couple of options in there. >> i forgot to ask: should additions to the tests be part of the ticket / >> patch? > > Yes. The idea is to commit regression tests at the same time as we > commit the fix.
ok, ... I'm trying to figure out how to tun the template regression tests by their own, but having no luck. I CAN run the whole test-suite ( i created the minimal settings.py needed), but now i only want that one suite of tests to run... i.e. regressontests/templates/tests.py but if i run just that i can't pass the settings.py, so i get: C:\Python25\Lib\site-packages\tests\regressiontests\templates>tests.py Templates F ====================================================================== FAIL: test_templates (__main__.Templates) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python25\Lib\site-packages\tests\regressiontests\templates\tests.py", line 740, in test_templates self.assertEqual(failures, [], '\n'.join(failures)) AssertionError: Template test (TEMPLATE_STRING_IF_INVALID=''): url01 -- FAILED. Got <type 'exceptions.AttributeError'>, exception: 'module' object has no attribute 'ROOT_URLCONF' etc... Any hints? - bram --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---