From 7116791494c8b04d4ea27442eb8f15537874ac65 Mon Sep 17 00:00:00 2001 From: Weii Wang Date: Wed, 23 Aug 2023 19:20:14 +0800 Subject: [PATCH] Update ops/testing.py Co-authored-by: Ben Hoyt --- ops/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/testing.py b/ops/testing.py index f06be11d1..9e065bf47 100755 --- a/ops/testing.py +++ b/ops/testing.py @@ -1588,7 +1588,7 @@ def handle_exec(self, *, handler: Optional[ExecHandler] = None, result: Optional[Union[int, str, bytes, ExecResult]] = None): - """Register a handler to simulate the pebble command execution. + """Register a handler to simulate the Pebble command execution. This allows a test harness to simulate the behavior of running commands in a container. When :meth:`ops.Container.exec` is triggered, the registered handler is used to