mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-04-04 14:49:02 +07:00
pytest-mock 2.0.0, when run locally, gets grumpy when os.path.exists is messed with and then another method is patched afterwards. Likely something in the pytest-mock chain uses os.path.exists internally, and since pytest-mock prohibits context-specific patching, there's not a good solution. For now, just patch os.path.exists last. Signed-off-by: Rick Elrod <rick@elrod.me>