Skip to content

Commit 9bf53e1

Browse files
Lorenzo CurcioLorenzo Curcio
authored andcommitted
Minor documentation fix for dapr python actor sdk mock actor capability
1 parent 0256265 commit 9bf53e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

daprdocs/content/en/python-sdk-docs/python-actor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ result = await mock_actor.recieve_reminder(name, state, due_time, period, _ttl)
104104

105105
**To allow for more fine-grained control, the `_on_activate` method will not be called automatically the way it is when Dapr initializes a new Actor instance. You should call it manually as needed as part of your tests.**
106106

107+
**A current limitation of the mock actor system is that it does not call the `_on_pre_actor_method` and `_on_post_actor_method` methods. You can always call these methods manually as part of a test.**
108+
107109
The `__init__`, `register_timer`, `unregister_timer`, `register_reminder`, `unregister_reminder` methods are all overwritten by the MockActor class that gets applied as a mixin via `create_mock_actor`. If your actor itself overwrites these methods, those modifications will themselves be overwritten and the actor will likely not behave as you expect.
108110

109111
*note: `__init__` is a special case where you are expected to define it as*

0 commit comments

Comments
 (0)