chore: Add more database-related tests (follow up to #31948) (#32054)

This commit is contained in:
Vitor Avila
2025-01-31 08:36:09 -03:00
committed by GitHub
parent f73d61a597
commit 5fc11fb706
3 changed files with 76 additions and 14 deletions

View File

@@ -60,6 +60,9 @@ class TablesDatabaseCommand(BaseCommand):
catalog=self._catalog_name,
schema=self._schema_name,
datasource_names=sorted(
# get_all_table_names_in_schema may return raw (unserialized) cached
# results, so we wrap them as DatasourceName objects here instead of
# directly in the method to ensure consistency.
DatasourceName(*datasource_name)
for datasource_name in self._model.get_all_table_names_in_schema(
catalog=self._catalog_name,
@@ -76,6 +79,9 @@ class TablesDatabaseCommand(BaseCommand):
catalog=self._catalog_name,
schema=self._schema_name,
datasource_names=sorted(
# get_all_view_names_in_schema may return raw (unserialized) cached
# results, so we wrap them as DatasourceName objects here instead of
# directly in the method to ensure consistency.
DatasourceName(*datasource_name)
for datasource_name in self._model.get_all_view_names_in_schema(
catalog=self._catalog_name,