I am working with python and new to it. i am trying to write unit tests for my class method where we are using configparse to fetch the config file details located at specific path.
While doing unit testing its giving me an error as KeyError for <configparser.ConfigParser object at 0x000001E8AEBC1F40>
the code for configparser is like
algor_conf = configparser.ConfigParser()
self.algor_conf.read('./path')
self.algor_conf['DynamicProgramingParamaters']['wealth_state_total']
Can anyone please help me to mock this
