removed unused variable to fix a warning
This commit is contained in:
parent
cc5e2ba054
commit
e0bec881bc
@ -371,7 +371,7 @@ class TestLazyReferenceField(MongoDBTestCase):
|
|||||||
|
|
||||||
for ref in book.authors:
|
for ref in book.authors:
|
||||||
with pytest.raises(AttributeError):
|
with pytest.raises(AttributeError):
|
||||||
x = ref["author"].name
|
ref["author"].name
|
||||||
assert isinstance(ref.author, LazyReference)
|
assert isinstance(ref.author, LazyReference)
|
||||||
assert isinstance(ref.author.id, ObjectId)
|
assert isinstance(ref.author.id, ObjectId)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user