Running Django test on project database -


in django project, loading model instances new test database takes time. possible test modules run against same project database (project_db) instead of test database (test_project_db), since same querying identical model instances?

i suggest write tests dont need complete production database. can create fixtures have initial data (as need, not as have in prod db sure). or use tools mixer , mock. , yes, https://pypi.python.org/pypi/django-nose/ sthzg suggests (fast fixtures!) worth try.

as @brandon said, "running tests against production database suicide" quite true. 1 error in code can ruin production database. also, having fixtures , consistent data give reliable test results, whereas production db change, , tests break out of nothing, while dont know why @ all.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -