mirror of
https://github.com/apache/superset.git
synced 2026-09-05 15:01:44 +00:00
SQLAlchemy 2.0 removed the subtransactions= parameter from Session.begin(); TestDatasource.setUp() called it unconditionally, failing every test in the class with "TypeError: scoped_session.begin() got an unexpected keyword argument 'subtransactions'" before the test body ever ran. Same fix as apache/superset#42866 (open at the time of this commit, not yet merged to master despite this branch already having merged master's tip) - applying it directly here since it's blocking all further local verification of tests/integration_tests/datasource_tests.py and is independent of the rest of this branch's SQLAlchemy 2.0 work. Once #42866 merges to master, a future master-merge into this branch will no-op on this file. Verified locally (sqlite): all 31 tests in datasource_tests.py pass.