title: Testing with configuration files
body: <p>my Google-fu has failed me by giving me results I don't understand, so I'm asking here.</p>
  <p>I'm working on a Python project and I currently have a configuration file, which is also .py, that holds various python objects to load when everything starts. I'm trying to get some practice unit testing with pytest and I don't know exactly how to go about this issue. My guess is that I am probably going to make a dedicated testing config file that doesn't change, but I have no clue how to tell my code when to use the actual config file and when to use the testing config file. My current setup in my code is just using <code>import config</code> and setting values from it. I would greatly appreciate some help here!</p>