@@ -60,7 +60,7 @@ class TestCustomImageValidation:
6060 ), # Placeholder - update with sdg_hub image
6161 },
6262 id = "sdg_hub_image" ,
63- #marks=pytest.mark.skip(reason="Waiting for sdg_hub image URL from workbench image team"),
63+ # marks=pytest.mark.skip(reason="Waiting for sdg_hub image URL from workbench image team"),
6464 ),
6565 # Test Case: Data Science Notebook (Demonstration of Pattern Reusability)
6666 # Image: Standard datascience workbench image
@@ -159,7 +159,7 @@ def test_custom_image_package_verification(
159159 else :
160160 # Default: basic Python packages
161161 packages_to_verify = ["sys" , "os" ]
162-
162+
163163 # Install packages if they're not standard library (not in the default list)
164164 standard_lib_packages = {"sys" , "os" }
165165 packages_to_install = [pkg for pkg in packages_to_verify if pkg not in standard_lib_packages ]
@@ -250,7 +250,7 @@ def _get_pod_failure_details(self, pod: Pod) -> str:
250250 f" Message: { message } "
251251 )
252252 else :
253- details .append (f" Waiting Reason: { reason } \n " f" Message: { message } " )
253+ details .append (f" Waiting Reason: { reason } \n Message: { message } " )
254254
255255 # Check terminated state
256256 if hasattr (container_status .state , "terminated" ) and container_status .state .terminated :
@@ -271,9 +271,7 @@ def _get_pod_failure_details(self, pod: Pod) -> str:
271271
272272 return "\n " .join (details )
273273
274- def _format_package_failure_report (
275- self , failed_packages : list [str ], results : dict , pod : Pod
276- ) -> str :
274+ def _format_package_failure_report (self , failed_packages : list [str ], results : dict , pod : Pod ) -> str :
277275 """
278276 Format a detailed error report for package import failures.
279277
@@ -298,7 +296,7 @@ def _format_package_failure_report(
298296 report .append (f" Execution Time: { result .execution_time_seconds :.2f} s" )
299297
300298 if result .pod_logs :
301- report .append (f " Pod Logs (excerpt):" )
299+ report .append (" Pod Logs (excerpt):" )
302300 # Show first 500 characters of logs
303301 log_excerpt = result .pod_logs [:500 ]
304302 for line in log_excerpt .split ("\n " ):
@@ -312,4 +310,4 @@ def _format_package_failure_report(
312310 report .append (" 3. Verify package names match import names (pip name vs import name)" )
313311 report .append (" 4. Contact the workbench image team for package installation issues" )
314312
315- return "\n " .join (report )
313+ return "\n " .join (report )
0 commit comments