You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
50, 100, f"Validation report opened in browser: {html_report_path}"
1864
1886
)
@@ -2142,15 +2164,19 @@ async def preview_table(
2142
2164
)
2143
2165
html_path=Path.cwd() /html_filename
2144
2166
2145
-
withopen(html_path, "w", encoding="utf-8") asf:
2146
-
f.write(full_html)
2167
+
# Skip file generation during testing
2168
+
ifTESTING_MODE:
2169
+
browser_msg=f"HTML preview generated (file creation skipped during testing)\n\nFile location: {html_path}"
2170
+
else:
2171
+
withopen(html_path, "w", encoding="utf-8") asf:
2172
+
f.write(full_html)
2147
2173
2148
-
# Open in default browser
2149
-
try:
2150
-
webbrowser.open(f"file://{html_path}")
2151
-
browser_msg=f"HTML preview saved and opened in default browser!\n\nFile location: {html_path}"
2152
-
exceptExceptionasbrowser_error:
2153
-
browser_msg=f"HTML preview saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
browser_msg=f"HTML preview saved and opened in default browser!\n\nFile location: {html_path}"
2178
+
exceptExceptionasbrowser_error:
2179
+
browser_msg=f"HTML preview saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
browser_msg=f"HTML missing values analysis saved and opened in default browser!\n\nFile location: {html_path}"
2238
-
exceptExceptionasbrowser_error:
2239
-
browser_msg=f"HTML analysis saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
browser_msg=f"HTML missing values analysis saved and opened in default browser!\n\nFile location: {html_path}"
2268
+
exceptExceptionasbrowser_error:
2269
+
browser_msg=f"HTML analysis saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
browser_msg=f"HTML column summary saved and opened in default browser!\n\nFile location: {html_path}"
2325
-
exceptExceptionasbrowser_error:
2326
-
browser_msg=f"HTML summary saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
browser_msg=f"HTML column summary saved and opened in default browser!\n\nFile location: {html_path}"
2359
+
exceptExceptionasbrowser_error:
2360
+
browser_msg=f"HTML summary saved to: {html_path}\n\n📖 Could not open browser automatically: {str(browser_error)}\nPlease open the file manually in your browser."
0 commit comments