Skip to content

Commit 732af5f

Browse files
author
Aravindhan Palanisamy
committed
add comment to usage of workspace
1 parent d884e7d commit 732af5f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

tests/integration/assetmanagement/test_asset_management.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def client(enterprise_config: HttpConfiguration) -> AssetManagementClient:
5454
@pytest.mark.integration
5555
@pytest.mark.enterprise
5656
class TestAssetManagement:
57+
_workspace = "2300760d-38c4-48a1-9acb-800260812337"
58+
"""Used the main-test default workspace since the client
59+
for creating a workspace has not been added yet"""
5760

5861
_create_assets_request = [
5962
CreateAssetRequest(
@@ -77,7 +80,7 @@ class TestAssetManagement:
7780
date="2022-06-07T18:58:05.000Z",
7881
),
7982
is_NI_asset=True,
80-
workspace="2300760d-38c4-48a1-9acb-800260812337",
83+
workspace=_workspace,
8184
location=AssetLocationForCreate(
8285
state=AssetPresence(asset_presence=AssetPresenceStatus.PRESENT)
8386
),

tests/integration/systems/test_systems.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def client(enterprise_config: HttpConfiguration) -> SystemsClient:
2727

2828

2929
workspace_id = "2300760d-38c4-48a1-9acb-800260812337"
30-
"""Constant represent id of the workspace."""
30+
"""Used the main-test default workspace since the client
31+
for creating a workspace has not been added yet"""
3132

3233

3334
@pytest.fixture

tests/integration/test_plan/test_test_plan_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def _create_test_plan_templates(
9797
class TestTestPlanClient:
9898

9999
_workspace = "2300760d-38c4-48a1-9acb-800260812337"
100+
"""Used the main-test default workspace since the client
101+
for creating a workspace has not been added yet"""
100102

101103
_dashboard = Dashboard(
102104
id="DashBoardId", variables={"product": "PXIe-4080", "location": "Lab1"}

0 commit comments

Comments
 (0)