isc-patrick commented on code in PR #1155: URL: https://github.com/apache/iceberg-python/pull/1155#discussion_r1763400342
########## tests/catalog/test_sql.py: ########## @@ -225,6 +237,93 @@ def test_creation_from_impl(catalog_name: str, warehouse: Path) -> None: ) +def confirm_no_tables_exist(alchemy_engine: Engine) -> list[str]: + inspector = inspect(alchemy_engine) + for c in SqlCatalogBaseTable.__subclasses__(): + if inspector.has_table(c.__tablename__): + c.__table__.drop(alchemy_engine) + + catalog_tables = [c.__tablename__ for c in SqlCatalogBaseTable.__subclasses__()] Review Comment: Made it a constant -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org