Skip to content

Commit

Permalink
fix:failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LevisNgigi committed Dec 18, 2024
1 parent ea628d9 commit 6b376b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions superset/queries/saved_queries/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.
from typing import Any

from flask import current_app
from flask_babel import lazy_gettext as _
from flask_sqlalchemy import BaseQuery
from sqlalchemy import or_
Expand Down Expand Up @@ -90,9 +89,6 @@ def apply(self, query: BaseQuery, value: Any) -> BaseQuery:
"""
user_id = get_user_id()

Check warning on line 90 in superset/queries/saved_queries/filters.py

View check run for this annotation

Codecov / codecov/patch

superset/queries/saved_queries/filters.py#L90

Added line #L90 was not covered by tests

if current_app.config.get("TESTING"):
return query.filter(SavedQuery.user_id == user_id)

if security_manager.can_access("can_read", "SavedQuery"):
return query

Check warning on line 93 in superset/queries/saved_queries/filters.py

View check run for this annotation

Codecov / codecov/patch

superset/queries/saved_queries/filters.py#L92-L93

Added lines #L92 - L93 were not covered by tests

Expand Down

0 comments on commit 6b376b7

Please sign in to comment.