mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: dataset name change and permission change (#21161)
* fix: dataset name change and permission change
This commit is contained in:
committed by
GitHub
parent
0c87ff783a
commit
3f2e894af3
@@ -53,6 +53,9 @@ def get_session(mocker: MockFixture) -> Callable[[], Session]:
|
||||
get_session.return_value = in_memory_session
|
||||
# FAB calls get_session.get_bind() to get a handler to the engine
|
||||
get_session.get_bind.return_value = engine
|
||||
# Allow for queries on security manager
|
||||
get_session.query = in_memory_session.query
|
||||
|
||||
mocker.patch("superset.db.session", in_memory_session)
|
||||
return in_memory_session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user