I have a function that reads a YAML file. I am dealing with the scenario that the file is trying to be read from someone without the proper authority.
How can I mock an opening of a file that has, e.g. chmod 000
to check that I'm handling this error correctly?
Aucun commentaire:
Enregistrer un commentaire