Skip to content

Commit

Permalink
Update ops/testing.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Hoyt <[email protected]>
  • Loading branch information
weiiwang01 and benhoyt committed Aug 23, 2023
1 parent b429c15 commit 37c104a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ def handle_exec(self,
When :meth:`ops.Container.exec` is triggered, the registered handler is used to
generate stdout and stderr for the simulated execution.
You can provide:
You can provide either a ``handler`` or a ``result``, but not both:
- A ``handler``: A function accepting :class:`ops.testing.ExecArgs` and returning
:class:`ops.testing.ExecResult` as the simulated process outcome. For simpler cases, the
Expand Down

0 comments on commit 37c104a

Please sign in to comment.