summaryrefslogtreecommitdiff
path: root/tests/unit/client_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Use pytest assertspytest-assertsJoffrey F2018-01-301-11/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Ensure default timeout is used by API Clientgrahamlyons2017-06-081-0/+13
| | | | | | | | | | | The `from_env` method on the `docker` module passed `None` as the value for the `timeout` keyword argument which overrode the default value in the initialiser, taken from `constants` module. This sets the default in the initialiser to `None` and adds logic to set that, in the same way that `version` is handled. Signed-off-by: grahamlyons <graham@grahamlyons.com>
* Client -> DockerClientJoffrey F2016-12-011-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1303 from aanand/helpful-containers-warningBen Firshman2016-12-011-0/+11
|\ | | | | Show a helpful warning when people try to call `client.containers()`
| * Show a helpful warning when people try to call `client.containers()`Aanand Prasad2016-11-281-0/+11
| | | | | | | | | | | | | | | | People upgrading to docker-py 2.0 without being aware of the new client API will likely try to call the old `containers()` method. This adds a helpful warning telling them to use APIClient to get the old API. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Rename Client -> DockerClientdocker_clientJoffrey F2016-11-281-2/+2
|/ | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* Add helpful error for APIClient methods on ClientBen Firshman2016-11-221-0/+14
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add new user-focused APIBen Firshman2016-11-221-0/+73
| | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename Client to APIClientBen Firshman2016-11-221-79/+0
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Drop support for Python 2.6Ben Firshman2016-11-221-3/+4
| | | | | | | Because it's ancient. If you're still using it, you can use an old version of docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Support version parameter in `Client.from_env`1075-from-env-versionJoffrey F2016-08-251-0/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't set socket timeout if it's already disabled when streamingKevin Frommelt2016-05-101-0/+44
| | | | Signed-off-by: Kevin Frommelt <kevin.frommelt@gmail.com>
* Add docker.from_env() shortcutBen Firshman2016-03-151-0/+26
A much neater way of getting started with docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>