All Questions
1 question
5
votes
3
answers
7k
views
How to write tests for function that depends on a config file?
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 ...