python - Problem with django nose and south having multiple databases -


i had django project 1 database (default). south installed generating migration scripts , nose test framework. models built on database. tests run successfully.

subsequently, needed connect second database (legacy), added databases configuration. access database using raw sql , no models. while trying run running tests, noticed that:

  1. nose creates test database legacy database
  2. default django tables (auth_... etc) created in database
  3. south runs migration scripts against legacy database , fail so

what disable creation of test legacy database , running of migration scripts on it. ideally, create tables in test legacy database myself issuing raw sql create-insert statements. possible?

thank help.

your path of least resistance write own test running management command. can either override existing command or create separate command desired behavior.

the docs creating custom management commands can found on official django docs , can find decent example of overriding stock "test" command in django-test-extensions project.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -