Skip to content

Commit fc18be4

Browse files
committed
Test suite base fixes
1 parent 9045456 commit fc18be4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
# --------------------------------------------------------------------------

sdk/digitaltwins/azure-digitaltwins-core/tests/_test_base/preparer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from azure_devtools.scenario_tests.exceptions import AzureTestError
1515
from devtools_testutils import ResourceGroupPreparer
1616

17-
from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient
18-
1917

2018
FakeResource = namedtuple(
2119
'FakeResource',
@@ -81,6 +79,8 @@ def create_resource(self, name, **kwargs):
8179
self.resource_moniker
8280
)
8381
else:
82+
# We have to import here due to a bug in the mgmt SDK
83+
from azure.mgmt.digitaltwins import AzureDigitalTwinsManagementClient
8484
self.client = self.create_mgmt_client(AzureDigitalTwinsManagementClient)
8585
group = self._get_resource_group(**kwargs)
8686

0 commit comments

Comments
 (0)