jodal / pykka

🌀 Pykka makes it easier to build concurrent Python applications.

Home Page:https://pykka.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test_actor_with_mocked_method_works

linpan opened this issue · comments

>       assert mock.call_count == 1
E       assert 0 == 1

will better if write this:
assert proxy.a_method().get() == "mocked method return" # this will call mock a_method.
assert mock.call_count == 1

Is this from the Pykka test suite or from documentation examples?

from Pykka test suite path:/tests/proxy/test_mocking::test_mocking.py

I'm sorry, I still don't understand what should be changed here and why. I'm closing the issue as I don't expect a reply after I've been silent for four months myself.