I have a function that uses information from a config file. How do I test the function? Ideally, I'd want to inject my own version of the config file and test from there, but I'm not using dependency injection.
How to write tests for function that depends on a config file?
programming practices;python;testing