From 4bfc89409fe00c9f865623b6990576a29ae48fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Thu, 24 Apr 2014 15:08:11 +0200 Subject: [PATCH] Giving up on testing the docs --- docs/index.rst | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 742c18b6..f73234a5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,15 +9,7 @@ to be opinion-free and very extendable. Example Usage ------------- - -.. testsetup:: - - from datetime import datetime - from elasticsearch import Elasticsearch - es = Elasticsearch() - es.delete_index("test_index", ignore_missing=True) - -.. testcode:: +:: from datetime import datetime from elasticsearch import Elasticsearch @@ -41,14 +33,6 @@ Example Usage for hit in res['hits']['hits']: print("%(timestamp)s %(author)s: %(text)s" % hit["_source"]) -.. testoutput:: - :hide: - - True - {u'text': u'Elasticsearch: cool. bonsai cool.', u'author': u'kimchy', u'timestamp': u'2010-10-10T10:10:10'} - Got 1 Hits: - 2010-10-10T10:10:10 kimchy: Elasticsearch: cool. bonsai cool. - Features --------