Skip to content

Commit ef74591

Browse files
Update daprdocs/content/en/python-sdk-docs/python-actor.md
Co-authored-by: Elena Kolevska <[email protected]> Signed-off-by: Lorenzo Curcio <[email protected]>
1 parent c3e6aca commit ef74591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mock_actor = create_mock_actor(MyActor, "id")
7979
await mock_actor.save_state(5)
8080
assert mockactor._state_manager._mock_state == 5 #True
8181
```
82-
Mock actors work by passing your actor class as well as the actor id (str) into the function create_mock_actor, which returns an instance of the actor with a bunch of the internal actor methods overwritten, such that instead of attempting to interact with Dapr to save state, manage timers, etc it instead only uses local variables.
82+
Mock actors are created by passing your actor class and an actor ID (a string) to the create_mock_actor function. This function returns an instance of the actor with many internal methods overridden. Instead of interacting with Dapr for tasks like saving state or managing timers, the mock actor uses in-memory state to simulate these behaviors.
8383

8484
Those variables are:
8585
* **_state_manager._mock_state()**

0 commit comments

Comments
 (0)