Skip to content

Commit b415538

Browse files
committed
Revert change to get_metadata_results()
1 parent e0294b7 commit b415538

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/core/engine_adapter/integration/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,7 @@ def add_test_suffix(self, value: str) -> str:
304304

305305
def get_metadata_results(self, schema: t.Optional[str] = None) -> MetadataResults:
306306
schema = schema if schema else self.schema(TEST_SCHEMA)
307-
results = MetadataResults.from_data_objects(self.engine_adapter.get_data_objects(schema))
308-
if self.dialect == "snowflake" and self.test_type == "df":
309-
# The Snowpark library manages the lifecycle of the SNOWPARK_TEMP_TABLE_* tables and drops them at the end of the session
310-
# Our paramterized tests are just checking for tables *we* manage so including the Snowpark tables gives off-by-one errors
311-
# when asserting table counts
312-
results.tables = [t for t in results.tables if not t.startswith("SNOWPARK_TEMP_TABLE")]
313-
return results
307+
return MetadataResults.from_data_objects(self.engine_adapter.get_data_objects(schema))
314308

315309
def _init_engine_adapter(self) -> None:
316310
schema = self.schema(TEST_SCHEMA)

0 commit comments

Comments
 (0)