#24484: Add a helpful message when running tests with models without migrations
--------------------------------------+------------------------------------
     Reporter:  acdha                 |                    Owner:  kaedroho
         Type:  Cleanup/optimization  |                   Status:  assigned
    Component:  Testing framework     |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by pzrq):

 Ended up looking at this as part of my PyConAU yak shaving.

 Squashed version for master:
 https://github.com/django/django/pull/5100

 Full branch, tests and reasoning in commits for code review:
 https://github.com/pzrq/django/compare/ticket-24484-4

 Squashed version rebased (some minor test merge conflicts) for 1.8:
 https://github.com/pzrq/django/compare/ticket-24484-4-squash-18

 Let me know if anyone has any questions, e.g. it took my aging 2011
 Macbook Air an extra ~17 seconds to run the `has_unmigrated_models` before
 it was renamed to `check_unmigrated_models` and some further refactoring
 applied. I also haven't thought about things like any possible
 interactions with things like `--keepdb`, just run it against the full
 test suite under Python 3.4.

--
Ticket URL: <https://code.djangoproject.com/ticket/24484#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.13e893a85ab3add85ab95388278e826c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to