Skip to content

Commit

Permalink
Disable doctest for now to prevent unwanted output due to pytest-dev/…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 31, 2018
1 parent bfcc44d commit 7dae024
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jaraco/mongodb/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class Collection(pymongo.collection.Collection):
save method. Don't use without first reading the cautions at
https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#q--a
>>> db = getfixture('database')
>>> coll = Collection(db, 'mycoll')
>>> coll.save({'foo': 'bar'})
>> db = getfixture('database')
>> coll = Collection(db, 'mycoll')
>> coll.save({'foo': 'bar'})
<pymongo.results.InsertOneResult object at ...>
>>> ob = coll.find_one()
>>> ob['foo'] = 'baz'
>>> coll.save(ob)
>> ob = coll.find_one()
>> ob['foo'] = 'baz'
>> coll.save(ob)
<pymongo.results.UpdateResult object at ...>
"""
save = save
Expand Down

0 comments on commit 7dae024

Please sign in to comment.