Fix unit tests

This commit is contained in:
Liam Young 2020-07-31 13:46:38 +00:00
parent cb2d095aea
commit 04b6edb480
2 changed files with 3 additions and 3 deletions

View File

@ -26,10 +26,10 @@ from ops.model import (
WaitingStatus, WaitingStatus,
) )
import ops_openstack import ops_openstack.core
class OpenStackTestAPICharm(ops_openstack.OSBaseCharm): class OpenStackTestAPICharm(ops_openstack.core.OSBaseCharm):
PACKAGES = ['keystone-common'] PACKAGES = ['keystone-common']
REQUIRED_RELATIONS = ['shared-db'] REQUIRED_RELATIONS = ['shared-db']
@ -75,7 +75,7 @@ class TestOSBaseCharm(CharmTestCase):
'os_utils'] 'os_utils']
def setUp(self): def setUp(self):
super().setUp(ops_openstack, self.PATCHES) super().setUp(ops_openstack.core, self.PATCHES)
self.os_utils.manage_payload_services = MagicMock() self.os_utils.manage_payload_services = MagicMock()
self.harness = Harness( self.harness = Harness(
OpenStackTestAPICharm, OpenStackTestAPICharm,