diff --git a/tests/integration_tests/tags/dao_tests.py b/tests/integration_tests/tags/dao_tests.py index e70a145ae9fe9..f2cb2fc92251e 100644 --- a/tests/integration_tests/tags/dao_tests.py +++ b/tests/integration_tests/tags/dao_tests.py @@ -121,13 +121,13 @@ def create_tagged_objects(self): tag_id=tag.id, ) ) + yield tagged_objects + for tag in tags: - db.session.delete(tag) - db.session.commit() + db.session.add(tag) for tagged_obj in tagged_objects: - db.session.delete(tagged_obj) - db.session.commit() + db.session.add(tagged_obj) db.session.commit() @pytest.mark.usefixtures("load_world_bank_dashboard_with_slices")