Message360594
I'm not sure I like the API feel after this change: two parameters that can't be used at the same time.
As Karthikeyan points out, this can be achieved using side_effect. Personally, I'd prefer a PR that adds a unit test showing that this approach works, and an example included in the docs as suggested above.
Also, be aware that there can be better options for mocking files. https://github.com/jmcgeheeiv/pyfakefs/ and https://docs.pytest.org/en/latest/tmpdir.html would be my recommendation. |
|
Date |
User |
Action |
Args |
2020-01-24 08:26:24 | cjw296 | set | recipients:
+ cjw296, michael.foord, mariocj89, xtreak, Anvil |
2020-01-24 08:26:24 | cjw296 | set | messageid: <1579854384.23.0.872716462256.issue37669@roundup.psfhosted.org> |
2020-01-24 08:26:24 | cjw296 | link | issue37669 messages |
2020-01-24 08:26:24 | cjw296 | create | |
|