How to prevent tests from running against production?

2013-03-03 Thread Roy Smith
Our deploy/configuration system includes credentials for connecting to a database. We have one production database, and a variety of clones of that in our test and development environments. We've got a large body of tests, written with a combination of unittest and nose. Many of our tests do

Re: How to prevent tests from running against production?

2013-03-03 Thread Ross Ridge
Roy Smith r...@panix.com wrote: Our deploy/configuration system includes credentials for connecting to a database. We have one production database, and a variety of clones of that in our test and development environments. Having your tests use credentials that don't work in the production

Re: How to prevent tests from running against production?

2013-03-03 Thread Steven D'Aprano
On Sun, 03 Mar 2013 16:56:16 -0500, Roy Smith wrote: Our deploy/configuration system includes credentials for connecting to a database. We have one production database, and a variety of clones of that in our test and development environments. We've got a large body of tests, written with a