"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cyborg/tests/base.py" between
openstack-cyborg-8.0.0.tar.gz and openstack-cyborg-9.0.0.tar.gz

About: OpenStack Cyborg provides a general purpose management framework for acceleration resources.
The "Zed" series (latest release).

base.py  (openstack-cyborg-8.0.0):base.py  (openstack-cyborg-9.0.0)
skipping to change at line 100 skipping to change at line 100
class DietTestCase(base.BaseTestCase): class DietTestCase(base.BaseTestCase):
"""Same great taste, less filling. """Same great taste, less filling.
BaseTestCase is responsible for doing lots of plugin-centric setup BaseTestCase is responsible for doing lots of plugin-centric setup
that not all tests require (or can tolerate). This class provides that not all tests require (or can tolerate). This class provides
only functionality that is common across all tests. only functionality that is common across all tests.
""" """
def setUp(self): def setUp(self):
super(DietTestCase, self).setUp() super(DietTestCase, self).setUp()
self.context = context.get_admin_context()
options.set_defaults(cfg.CONF, connection='sqlite://') options.set_defaults(cfg.CONF, connection='sqlite://')
debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER') debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER')
if debugger: if debugger:
self.addOnException(post_mortem_debug.get_exception_handler( self.addOnException(post_mortem_debug.get_exception_handler(
debugger)) debugger))
self.addCleanup(mock.patch.stopall) self.addCleanup(mock.patch.stopall)
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)