From 18069839a81f6fabffc4e1f8ea0630f96767c1d9 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 10 Dec 2024 18:16:14 +0200 Subject: [PATCH] fix UTs --- tests/unit/test_charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,