removed unused variable to fix a warning

This commit is contained in:
Peter Volf 2020-11-25 15:17:52 +01:00
parent cc5e2ba054
commit e0bec881bc

View File

@ -371,7 +371,7 @@ class TestLazyReferenceField(MongoDBTestCase):
for ref in book.authors:
with pytest.raises(AttributeError):
x = ref["author"].name
ref["author"].name
assert isinstance(ref.author, LazyReference)
assert isinstance(ref.author.id, ObjectId)