diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index 19741d2c..19535058 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -582,7 +582,7 @@ def service(self): @k8s_resource_multipatch @patch("lightkube.core.client.GenericSyncClient") @patch.multiple( - "ops.testing._TestingPebbleClient", + "ops._private.harness._TestingPebbleClient", start_services=raise_if_called, stop_services=raise_if_called, restart_services=raise_if_called, @@ -617,7 +617,7 @@ def test_no_restart_nor_reload_when_nothing_changes(self, reload_config_patch, * @k8s_resource_multipatch @patch("lightkube.core.client.GenericSyncClient") @patch.multiple( - "ops.testing._TestingPebbleClient", + "ops._private.harness._TestingPebbleClient", start_services=raise_if_called, stop_services=raise_if_called, restart_services=raise_if_called,