commit b32926a005a74971ade4517e25dbab1afc88535c
Author: Ben Nemec <email address hidden>
Date: Tue Nov 8 23:41:12 2016 +0000
Mock yaml.safe_load safely
Just monkey-patching yaml.safe_load can break later tests because
it isn't automatically undone after the test completes. Using
mock.patch to set the mock will handle the cleanup safely.
This is additional followup fix for the linked bug.
Partial-Bug: #1640141
Change-Id: I1b8905d1074f7847e51f64d53a9eaa47d063112e
(cherry picked from commit 06f7b3a00e6acaf0d19d95d0c636cecb4642b749)
Reviewed: https:/ /review. openstack. org/395289 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=b32926a005a 74971ade4517e25 dbab1afc88535c
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit b32926a005a7497 1ade4517e25dbab 1afc88535c
Author: Ben Nemec <email address hidden>
Date: Tue Nov 8 23:41:12 2016 +0000
Mock yaml.safe_load safely
Just monkey-patching yaml.safe_load can break later tests because
it isn't automatically undone after the test completes. Using
mock.patch to set the mock will handle the cleanup safely.
This is additional followup fix for the linked bug.
Partial-Bug: #1640141 47e51f64d53a9ea a47d063112e 0d19d95d0c636ce cb4642b749)
Change-Id: I1b8905d1074f78
(cherry picked from commit 06f7b3a00e6acaf