Russ, RK> On 7/29/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: >> >> I'm not using django's testing framework for several reasons: >> - I'm using django from 0.91 days and wasn't following django-users all >> this way >> - I use nose and twill for testing and they have no ready-to-use plugs >> into django testing (or I haven't been able to find it)
RK> There aren't any built-in mechanisms for supporting nose or twill RK> tests. There are so many 'alternative' testing frameworks - we're not RK> going to add support for every single one of them. I know and accept that. RK> However, it is very simple to add support for an external testing RK> mechanism - this is one of the original design considerations. See the RK> following for details: RK> http://www.djangoproject.com/documentation/testing/#using-a-different-testing-framework I know that section exists. When I mentioned 'ready-to-use plugs' above I've meant exactly these hooks. Someday I'll write nosetests plugin. >> But sqlite has no concat function and straightforward approach will lead to >> an exception. Thus >> sqlite_conn.connection.create_function('concat', 2, >> lambda *args: ''.join(args)) >> in DbMock setup. RK> This is a workaround required by your specific SQL requirements. RK> Similar problems would exist if you used Postgres TSearch2 extensions RK> in your queries, or any other DB-specific extension. It's not really RK> Django's responsibility to normalize every possible SQL query across RK> every possible backend. I know. RK> However, it probably is Django's responsibility to provide a generic RK> hook so that you (as an end user) can add whatever normalizations your RK> application may require. Any suggestions on how to approach this RK> problem would be greatfully accepted. Well, if I'm using sqlite as a test db backend, I can add nearly any function I need in the manner described above. What other usecases might be? -- Andrey V Khavryuchenko Django NewGate - http://www.kds.com.ua/djiggit/ Development - http://www.kds.com.ua Call akhavr1975 on www.gizmoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---