Hi all, Has anyone had any success in running the tests in the schema evolution branch?
The tests don't look like they're integrated with runtests.py at all. As far as I can tell, you have to do the following to get the test suite to run: 1) cd schema-evolution/tests/evolvedbtests 2) the INSTALLED_APPS is setup incorrectly. Remove all the "evolvedb." prefixes 3) Run reset_all_to_pre (note that this doesn't have a shebang at the top) 4) Run python manage.py syncdb 5) Run reset_all_to_post (note that this script also doesn't have a shebang at the top) 6) Run python manage.py sqlevolve on each of the case0<X> applications and watch as SQL is emitted So do basically something like this: cd branches/schema-evolution/tests/evolvedbtests ./rest_all_to_pre python manage.py syncdb ./reset_all_to_post python manage.py sqlevolve case01_add_field python manage.py sqlevolve case02_rename_field python manage.py sqlevolve case03_rename_model python manage.py sqlevolve case04_change_flag python manage.py sqlevolve case05_remove_field There doesn't seem to be any automation around what the expected SQL output is, and as far as I can tell, this only works on the mysql backend. The emitted output on my machine is always empty. I always get this: ~/svk-ws/remote/mb-django/branches/schema-evolution/tests/evolvedbtests> python manage.py sqlevolve case01_add_field BEGIN; COMMIT; Which is obviously not what I really want. Any thoughts? vic -- "Never attribute to malice that which can be adequately explained by stupidity." - Hanlon's Razor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
