mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(dao): Organize DAOs according to SIP-92 (#24331)
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
This commit is contained in:
@@ -51,7 +51,7 @@ def session_with_data(session: Session) -> Iterator[Session]:
|
||||
|
||||
|
||||
def test_database_get_ssh_tunnel(session_with_data: Session) -> None:
|
||||
from superset.databases.dao import DatabaseDAO
|
||||
from superset.daos.database import DatabaseDAO
|
||||
from superset.databases.ssh_tunnel.models import SSHTunnel
|
||||
|
||||
result = DatabaseDAO.get_ssh_tunnel(1)
|
||||
@@ -62,7 +62,7 @@ def test_database_get_ssh_tunnel(session_with_data: Session) -> None:
|
||||
|
||||
|
||||
def test_database_get_ssh_tunnel_not_found(session_with_data: Session) -> None:
|
||||
from superset.databases.dao import DatabaseDAO
|
||||
from superset.daos.database import DatabaseDAO
|
||||
|
||||
result = DatabaseDAO.get_ssh_tunnel(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user