Sunday, December 27, 2015

Re: testing django migrations

Hi,

I used this:

It's only worth writing tests if you are modifying code created by makemigrations.

Dan

On 27 December 2015 at 10:14, varun naganathan <varunnaganathan912@gmail.com> wrote:
Hi,I wanted to know how am i supposed to test the working of django migrations.As in how the migrations generate the SQL query.Basically I want to inspect how the sql query generated as in the output of "./manage.py sqlmigrate" is being generated.I've generally used "pdb" along wth unittest.TestCase,but for migrations I'm pretty much stuck.Does anyone probably have a sample test they wrote to test the django migrations.
Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6364f7e-56ab-4682-ad0a-3684e6199c8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Wildman and Herring Limited, Registered Office: 52 Great Eastern Street, London, EC2A 3EP, Company no: 05766374

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZHCY5CJ_9jex%2BnKNi%3DCy2XG9X9zrLS%3DJBW-mUmDoCpK6%2BTPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment