~openstack-charm-sync/charms/trusty/swift-storage/next

« back to all changes in this revision

Viewing changes to unit_tests/test_actions_openstack_upgrade.py

  • Committer: Corey Bryant
  • Date: 2015-11-03 17:08:12 UTC
  • mfrom: (92.1.1 trunk)
  • Revision ID: corey.bryant@canonical.com-20151103170812-44h1mjnh2vrdqfan
[james-pages,r=corey.bryant] Add tox support for lint and unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
os.environ['JUJU_UNIT_NAME'] = 'swift-storge'
5
5
 
6
 
with patch('charmhelpers.core.hookenv.config') as config:
7
 
    with patch('lib.misc_utils.is_paused') as is_paused:
8
 
        config.return_value = 'swift-storage'
 
6
with patch('lib.misc_utils.is_paused') as is_paused:
 
7
    with patch('lib.swift_storage_utils.register_configs') as _:
9
8
        import actions.openstack_upgrade as openstack_upgrade
10
9
 
11
10
from test_utils import (