Skip to content

Proper way to test actor private field value changed with pytest #108

Answered by SomeAkk
SomeAkk asked this question in Q&A
Discussion options

You must be logged in to vote

Found problem: it was in my code, any help unneeded)
Problem was that after self.actor_ref.tell(message) in on_receive() i added messages in ._buffer again.
So in test i saw buffer with messages ["message1", "message2", "message3"] again)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jodal
Comment options

Answer selected by SomeAkk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants