Skip to content

Commit 5310867

Browse files
committed
remove test_redash_dashboard_crawler_crawls_dashboards_with_debug_listing_upper_limit entirely dependent on legacy dashboards and fmt
1 parent d7173ed commit 5310867

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

tests/integration/assessment/test_dashboards.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ def test_redash_dashboard_crawler_crawls_dashboard(ws, make_dashboard, inventory
3232
assert dashboards == [Dashboard.from_sdk_redash_dashboard(dashboard)]
3333

3434

35-
@pytest.mark.skip(reason="Legacy dashboard creation is no longer supported by Databricks.")
36-
def test_redash_dashboard_crawler_crawls_dashboards_with_debug_listing_upper_limit(
37-
ws, make_dashboard, inventory_schema, sql_backend
38-
) -> None:
39-
for _ in range(2): # Create two dashboards, expect one to be snapshotted due to upper limit below
40-
make_dashboard()
41-
crawler = RedashDashboardCrawler(ws, sql_backend, inventory_schema, debug_listing_upper_limit=1)
42-
43-
dashboards = list(crawler.snapshot())
44-
45-
assert len(dashboards) == 1
46-
47-
4835
def test_lakeview_dashboard_crawler_crawls_dashboards(
4936
ws, make_lakeview_dashboard, inventory_schema, sql_backend
5037
) -> None:
@@ -72,7 +59,6 @@ def test_lakeview_dashboard_crawler_crawls_dashboard(
7259
assert dashboards == [Dashboard.from_sdk_lakeview_dashboard(dashboard)]
7360

7461

75-
7662
def test_lakeview_dashboard_ownership_is_me(runtime_ctx, make_lakeview_dashboard) -> None:
7763
"""Lakeview dashboard do not have a `creator` field, thus we fall back on the parent workspace path owner"""
7864
sdk_lakeview_dashboard = make_lakeview_dashboard()

tests/integration/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ def make_query(self, **kwargs) -> LegacyQuery:
542542
self._queries.append(query)
543543
return query
544544

545-
546545
def make_lakeview_dashboard(self, **kwargs) -> SdkLakeviewDashboard:
547546
dashboard = self._make_lakeview_dashboard(**kwargs)
548547
self._lakeview_query_id = "query" # Hardcoded query name in the `make_lakeview_dashboard` fixture

tests/integration/source_code/test_queries.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import pytest
21
from databricks.labs.lsql.backends import Row
32

4-
from databricks.labs.ucx.source_code.base import DirectFsAccess, LineageAtom, UsedTable
3+
from databricks.labs.ucx.source_code.base import DirectFsAccess, LineageAtom
4+
55

66
def test_query_linter_lints_queries_and_stores_dfsas_and_tables(simple_ctx) -> None:
77
query_with_dfsa = simple_ctx.make_query(sql_query="SELECT * from csv.`dbfs://some_folder/some_file.csv`")
@@ -33,7 +33,8 @@ def test_query_linter_lints_queries_and_stores_dfsas_and_tables(simple_ctx) -> N
3333
object_type="QUERY",
3434
object_id=f"no-dashboard-id/{query_with_dfsa.id}",
3535
other={"name": query_with_dfsa.name},
36-
)],
36+
)
37+
],
3738
path="dbfs://some_folder/some_file.csv",
3839
is_read=True,
3940
is_write=False,

0 commit comments

Comments
 (0)