Skip to content

Commit

Permalink
Get these print() out of my sight!
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Dec 12, 2022
1 parent ed66eb8 commit 8a0ea6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/versioned.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ async def test_async_versioned_get_revisions(TestVersionedThingy):
cursor = thingy.get_revisions()
assert isinstance(cursor, AsyncCursor)

print(await thingy.get_revisions().to_list(length=10))
revision = await cursor.first()
assert revision.document == thingy.__dict__
assert revision.document_type == "TestVersionedThingy"
Expand Down Expand Up @@ -145,17 +144,11 @@ def test_versioned_revisions_operation(TestVersionedThingy):
async def test_async_versioned_revisions_operation(TestVersionedThingy):
thingy = await TestVersionedThingy({"bar": "baz"}).save()
revisions = await thingy.get_revisions().to_list(length=10)
from pprint import pprint

pprint(revisions)
assert revisions[0].operation == "create"

thingy.bar = "qux"
await thingy.save()
revisions = await thingy.get_revisions().to_list(length=10)
from pprint import pprint

pprint(revisions)
assert revisions[1].operation == "update"

await thingy.delete()
Expand Down

0 comments on commit 8a0ea6f

Please sign in to comment.