✅(backend) fix test related to django-treebeard 4.8.0 upgrade
In one test related to the Document::restore function, one more query is made. Probably a cache issue fixed in django-treebeard 4.8.0. When updating the numchild parent, one more query is made to fetch in database the parent document, this was not made before.
This commit is contained in:
@@ -1393,7 +1393,7 @@ def test_models_documents_restore_complex(django_assert_num_queries):
|
||||
assert child2.ancestors_deleted_at == document.deleted_at
|
||||
|
||||
# Restore the item
|
||||
with django_assert_num_queries(13):
|
||||
with django_assert_num_queries(14):
|
||||
document.restore()
|
||||
document.refresh_from_db()
|
||||
child1.refresh_from_db()
|
||||
|
||||
Reference in New Issue
Block a user