Skip to content

Commit

Permalink
SRV-948 fix - mocking security manager
Browse files Browse the repository at this point in the history
  • Loading branch information
nyohasstium committed Jan 6, 2025
1 parent 695394f commit 33b69dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration_tests/model_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,9 @@ def query_with_expr_helper(self, is_timeseries, inner_join=True):
return qr.df

@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
def test_query_with_expr_groupby_timeseries(self):
@mock.patch("superset.security.manager.g")
def test_query_with_expr_groupby_timeseries(self, mock_g):
mock_g.user = security_manager.find_user("admin")
if get_example_database().backend == "presto":
# TODO(bkyryliuk): make it work for presto.
return
Expand Down

0 comments on commit 33b69dc

Please sign in to comment.