From 1a1ee73161b82e8d7ee64c2b132ec8d63adb56cd Mon Sep 17 00:00:00 2001 From: hughhhh Date: Mon, 3 Apr 2023 20:30:46 -0400 Subject: [PATCH] fix tag --- tests/integration_tests/tags/dao_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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")