fix: dataset name change and permission change (#21161)

* fix: dataset name change and permission change
This commit is contained in:
Daniel Vaz Gaspar
2022-08-31 18:11:03 +01:00
committed by GitHub
parent 0c87ff783a
commit 3f2e894af3
9 changed files with 1301 additions and 407 deletions

View File

@@ -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