chore(sqlalchemy): Remove erroneous SQLAlchemy ORM session.merge operations (#24776)

This commit is contained in:
John Bodley
2023-11-20 17:25:41 -08:00
committed by GitHub
parent e7797b65d1
commit dd58b31cc4
49 changed files with 34 additions and 82 deletions

View File

@@ -113,7 +113,6 @@ class TestDashboardDAO(SupersetTestCase):
data.update({"foo": "bar"})
DashboardDAO.set_dash_metadata(dashboard, data)
db.session.merge(dashboard)
db.session.commit()
new_changed_on = DashboardDAO.get_dashboard_changed_on(dashboard)
assert old_changed_on.replace(microsecond=0) < new_changed_on
@@ -125,7 +124,6 @@ class TestDashboardDAO(SupersetTestCase):
)
DashboardDAO.set_dash_metadata(dashboard, original_data)
db.session.merge(dashboard)
db.session.commit()
@pytest.mark.usefixtures("load_world_bank_dashboard_with_slices")