Giving up on testing the docs

This commit is contained in:
Honza Král
2014-04-24 15:08:11 +02:00
parent 99ad9a154a
commit 4bfc89409f
+1 -17
View File
@@ -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
--------