February 2018
Intermediate to advanced
456 pages
9h 56m
English
According to the documentation, http://url.marcuspen.com/nameko, Nameko is:
We will now focus on the testability part of Nameko; it provides some very useful tools for isolating and testing its services.
Create a new folder, tests, and place two new files inside, __init__.py (which can be left blank) and test_service.py:
from nameko.testing.services import worker_factory
from temp_messenger.service import KonnichiwaService
def test_konnichiwa():
service = worker_factory(KonnichiwaService)
result = service.konnichiwa()
assert result == 'Konnichiwa!'
When running outside of the ...
Read now
Unlock full access