diff --git a/src/crate/client/doctests/http.txt b/src/crate/client/doctests/http.txt index 5382b5b6..fa9407c3 100644 --- a/src/crate/client/doctests/http.txt +++ b/src/crate/client/doctests/http.txt @@ -181,13 +181,13 @@ an exception is raised when the timeout is reached:: ... crate.client.exceptions.ConnectionError: No more Servers available, exception from last server: ... -When connecting to non Crate servers the HttpClient will raise a ConnectionError like this:: +When connecting to non-CrateDB servers, the HttpClient will raise a ConnectionError like this:: - >>> http_client = HttpClient(["https://crate.io"]) + >>> http_client = HttpClient(["https://httpbin.org/html"]) >>> http_client.server_infos(http_client._get_server()) Traceback (most recent call last): ... - crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=UTF-8': + crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=utf-8': ... When using the ``error_trace`` kwarg a full traceback of the server exception diff --git a/src/crate/client/doctests/mocking.txt b/src/crate/client/doctests/mocking.txt index a2201cad..c32a701b 100644 --- a/src/crate/client/doctests/mocking.txt +++ b/src/crate/client/doctests/mocking.txt @@ -5,7 +5,7 @@ Client Mocking For testing purposes it is often useful to replace the client used for communication with the CrateDB server with a stub or mock. -This can be done by passing a object of the Client class when calling the +This can be done by passing an object of the Client class when calling the ``connect`` method:: >>> from crate import client