File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed
Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 11# Azure Machine Learning - Automated ML Example
22
3- [ ![ AzureML] ( https://a11ybadges.com/badge?logo=azure )] ( https://azure.microsoft.com/en-us/products/machine-learning/ )
4- [ ![ Python] ( https://a11ybadges.com/badge?logo=python )] ( https://www.python.org/ )
3+ [ ![ AzureML] ( https://a11ybadges.com/badge?logo=microsoft )] ( https://azure.microsoft.com/en-us/products/machine-learning/ )
4+ [ ![ Python] ( https://a11ybadges.com/badge?logo=python )] ( https://www.python.org/ ) < br >
55[ ![ Unit Tests] ( https://github.com/FullStackWithLawrence/azureml-example/actions/workflows/test.yml/badge.svg?branch=main )] ( https://github.com/FullStackWithLawrence/azureml-example/actions/workflows/test.yml )
66![ Release Status] ( https://github.com/FullStackWithLawrence/azureml-example/actions/workflows/release.yml/badge.svg?branch=main )
77![ Auto Assign] ( https://github.com/FullStackWithLawrence/azureml-example/actions/workflows/auto-assign.yml/badge.svg )
Original file line number Diff line number Diff line change @@ -32,19 +32,22 @@ def setUpClass(cls):
3232 def tearDownClass (cls ):
3333 """Clean up class-level resources."""
3434 if not cls .is_testable :
35- # Stop all patches
36- patchers = [
37- "ml_client_patcher" ,
38- "credential_patcher" ,
39- "dataset_v2_patcher" ,
40- "workspace_patcher" ,
41- "dataset_v1_patcher" ,
42- "compute_patcher" ,
43- "experiment_patcher" ,
44- ]
45- for patcher_name in patchers :
46- if hasattr (cls , patcher_name ):
47- getattr (cls , patcher_name ).stop ()
35+ try :
36+ patchers = [
37+ "ml_client_patcher" ,
38+ "credential_patcher" ,
39+ "dataset_v2_patcher" ,
40+ "workspace_patcher" ,
41+ "dataset_v1_patcher" ,
42+ "compute_patcher" ,
43+ "experiment_patcher" ,
44+ ]
45+ for patcher_name in patchers :
46+ if hasattr (cls , patcher_name ):
47+ getattr (cls , patcher_name ).stop ()
48+ # pylint: disable=W0718
49+ except Exception as e :
50+ logger .error (f"Error during tearDownClass: { e } " )
4851
4952 @classmethod
5053 def _setup_azure_mocks (cls ):
You can’t perform that action at this time.
0 commit comments