add common cleanup for mocks to BaseTestCase in unit tests
Bug #1323214 reported by
Ihar Hrachyshka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Undecided
|
Ihar Hrachyshka |
Bug Description
BaseTestCase that is used in unit tests does not set mock.patch.stopall as a cleanup function, meaning each unit test that uses mock objects is forced to add its own cleanup. This can be enhanced by setting the cleanup function in the base test class.
tags: | added: oslotest |
Changed in oslo: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/95465
Review: https:/