mirror of
https://github.com/apache/superset.git
synced 2026-05-06 16:34:32 +00:00
chore: s/MockFixture/MockerFixture/g (#29160)
This commit is contained in:
@@ -18,7 +18,7 @@ from datetime import datetime, timedelta
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
from pytest_mock import MockFixture
|
||||
from pytest_mock import MockerFixture
|
||||
from sqlalchemy.orm.session import Session
|
||||
|
||||
from superset.exceptions import QueryNotFoundException, SupersetCancelQueryException
|
||||
@@ -116,7 +116,7 @@ def test_query_dao_get_queries_changed_after(session: Session) -> None:
|
||||
|
||||
|
||||
def test_query_dao_stop_query_not_found(
|
||||
mocker: MockFixture, app: Any, session: Session
|
||||
mocker: MockerFixture, app: Any, session: Session
|
||||
) -> None:
|
||||
from superset import db
|
||||
from superset.common.db_query_status import QueryStatus
|
||||
@@ -159,7 +159,7 @@ def test_query_dao_stop_query_not_found(
|
||||
|
||||
|
||||
def test_query_dao_stop_query_not_running(
|
||||
mocker: MockFixture, app: Any, session: Session
|
||||
mocker: MockerFixture, app: Any, session: Session
|
||||
) -> None:
|
||||
from superset import db
|
||||
from superset.common.db_query_status import QueryStatus
|
||||
@@ -198,7 +198,7 @@ def test_query_dao_stop_query_not_running(
|
||||
|
||||
|
||||
def test_query_dao_stop_query_failed(
|
||||
mocker: MockFixture, app: Any, session: Session
|
||||
mocker: MockerFixture, app: Any, session: Session
|
||||
) -> None:
|
||||
from superset import db
|
||||
from superset.common.db_query_status import QueryStatus
|
||||
@@ -240,7 +240,9 @@ def test_query_dao_stop_query_failed(
|
||||
assert query.status == QueryStatus.RUNNING
|
||||
|
||||
|
||||
def test_query_dao_stop_query(mocker: MockFixture, app: Any, session: Session) -> None:
|
||||
def test_query_dao_stop_query(
|
||||
mocker: MockerFixture, app: Any, session: Session
|
||||
) -> None:
|
||||
from superset import db
|
||||
from superset.common.db_query_status import QueryStatus
|
||||
from superset.models.core import Database
|
||||
|
||||
Reference in New Issue
Block a user