My bad...missed the version in original question. You are right.
On Tue, Aug 30, 2016 at 4:59 PM, Andromeda Yelton < andromeda.yel...@gmail.com> wrote: > What are do the relevant parts of your settings file say? In particular, > https://docs.djangoproject.com/en/1.7/topics/testing/overview/#the- > test-database says "If you want to use a different database name, specify > NAME in the TEST dictionary for any given database in DATABASES." - I would > check there to see if someone has overridden the default. There's also a > little section in the docs labeled "Finding data from your production > database when running tests?" that might be relevant to you. > > (--keepdb is a great flag but sadly irrelevant as it was not introduced > until 1.8.) > > On Mon, Aug 29, 2016 at 6:26 PM, Adam Hirsch <adam.e.hir...@gmail.com> > wrote: > >> I've been handed a fairly large and built-up django 1.7.9 installation >> with several dozen pre-existing in-house modules and a lot of history. >> >> For some reason, any attempt to * manage.py test * any of the existing >> modules runs tests against the live database specified in >> *DATABASES['default'] >> *rather than attempting to create a new test database. I've written a >> couple of simple unit tests for a given module, generated a small fixture >> of data to apply to a blank schema for testing ... but I can't for the life >> of me find why this installation isn't creating a test_db. No errors, no >> failures ... just tests run against the production db. >> >> Anyone have a pointer to what might be going on, or concepts to look up? >> A simple Hello World install using the same django version on the same >> machine works exactly as the docs suggest it should: I see >> >> Creating test database for alias 'default' (':memory:')... >> [...] >> Destroying test database for alias 'default' (':memory:')... >> >> >> ... but there are no such lines in my real installation. I'm baffled. >> >> Adam >> >> >> >> -- >> 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+unsubscr...@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/ms >> gid/django-users/ea373ba9-9c9e-4358-9c71-b3c0d1c4b3d9%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/ea373ba9-9c9e-4358-9c71-b3c0d1c4b3d9%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Andromeda Yelton > Vice President/President-Elect, Library & Information Technology > Association: http://www.lita.org > http://andromedayelton.com > @ThatAndromeda <http://twitter.com/ThatAndromeda> > > -- > 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+unsubscr...@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/CAFE1XCbL_cm1pYGMpo-gv%3D3z0WkmeYaQZTsvLzHMR56gHpM7_ > A%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFE1XCbL_cm1pYGMpo-gv%3D3z0WkmeYaQZTsvLzHMR56gHpM7_A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@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/CANoUts70zdo5tn7U%2B-tnOWf1SDT_G8q9tDDSdGPb0S9UghTahg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.