Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
On 12/07/2014 12:59 PM, Matwey V. Kornilov wrote: > The following code works perfect for me, why the code in the > documentations so sophisticated? > > def runtests(): > os.environ.setdefault("DJANGO_SETTINGS_MODULE", > "tests.test_settings") > > try: > from

Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
On 12/07/2014 02:28 PM, Carl Meyer wrote: > On 12/07/2014 08:40 AM, Matwey V. Kornilov wrote: >> I've followed this documentation: >> https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications >> and found that it works only for Django

Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
Hi Matwey, On 12/07/2014 08:40 AM, Matwey V. Kornilov wrote: > I've followed this documentation: > https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications > and found that it works only for Django 1.7, whereas I would like to >

Re: Testing reusable application: compatible way

2014-12-07 Thread Matwey V. Kornilov
The following code works perfect for me, why the code in the documentations so sophisticated? def runtests(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_settings") try: from django import setup setup() except

Testing reusable application: compatible way

2014-12-07 Thread Matwey V. Kornilov
Hi, I've followed this documentation: https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications and found that it works only for Django 1.7, whereas I would like to have a code snipped working also for 1.5, 1.6. An issue with the