Using testservices¶
Here are the concepts used by testservices:
- Service¶
This is the basic thing that testservices manages. It often ends up representing a TCP port and some credential to connect to it, but, conceptually, can be anything from a piece of hardware to a simple file on disk.
Its API is defined by
testservices.service.Service.- Provider¶
This provides a single service from a selection of alternatives. The intention is to provide the first service that is
possiblein the current context,createit if doesn’t alreadyexistand then returnthe objectrepresenting it.Its API is defined by
testservices.provider.Provider.
Installation¶
testservices is available on the Python Package Index and can be installed with any tools for managing Python environments.