Skip to content

Commit 016ef27

Browse files
committed
docs: update readme
1 parent 6943614 commit 016ef27

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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)

azure_ai/tests/test_base.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)