Fix unit tests
This commit is contained in:
parent
cb2d095aea
commit
04b6edb480
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue