UPDATE , it was really in 2012. In 2013, the situation changed: the stub was officially completed. See Answer @ siebz0r.
This is not a list of supported stubs (but I guess), but there SearchServiceStub in simple_search_stub.py, which looks like you.
I have not tested it myself, but you could try to do something like this:
testbed = testbed.Testbed() testbed.activate() stub = SearchServiceStub() testbed._register_stub(SEARCH_SERVICE_NAME, stub)
SEARCH_SERVICE_NAME
must be "search"
and it must also be in the SUPPORTED_SERVICES list, otherwise testbed will throw an exception .
The way you "enter" this new service stub either modifies the SDK / __ init__.py test bench or does it from your code. I canβt say which approach is better, since it will be hacked in any case, until init_search_stub () officially appears in the list.
In addition, the fact that he is not yet on the list is probably because he is simply not ready :) So, use it at your own risk.
source share