I am working on a personal project using python. Currently I am using nose for unit testing and there is a python file for storing all the settings, like files' paths, db config, etc.
Because the application will connect to a database, I hope when I do unit testing, the database used and the files the application reads/writes are not the ones storing all the real data.
I think a good way I could do is setting up several stages, but because I am using pure python without using any frameworks like Django, so I am not sure how to do that.
I can also write a simple script or something similar to switch between different config files before running unit tests/real work, but I think this way is not as good as setting up different stages.