Skip to content

Commit a1a25af

Browse files
committed
[change:api] Assert __task_classificationTypeName instead of classification_id in tests
1 parent 48177cc commit a1a25af

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/aio/test_task_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def test_task_search(
108108
assert task.created_by
109109
assert task.updated_time
110110
assert task.parameters
111-
assert task.classification_id
111+
assert task.parameters.get("__task_classificationTypeName")
112112
assert task.attempt_count is not None and task.attempt_count >= 0
113113
assert task.entity_guid == snowflake_column.guid
114114
assert task.type == AtlanTaskType.CLASSIFICATION_PROPAGATION_ADD

tests/integration/test_task_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_task_search(
106106
assert task.created_by
107107
assert task.updated_time
108108
assert task.parameters
109-
assert task.classification_id
109+
assert task.parameters.get("__task_classificationTypeName")
110110
assert task.attempt_count is not None and task.attempt_count >= 0
111111
assert task.entity_guid == snowflake_column.guid
112112
assert task.type == AtlanTaskType.CLASSIFICATION_PROPAGATION_ADD

tests/unit/aio/test_task_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def test_task_search_get_when_given_request(
131131
assert task.attempt_count == 0
132132
assert task.entity_guid
133133
assert task.time_taken_in_seconds
134-
assert task.classification_id
134+
assert task.parameters.get("__task_classificationTypeName")
135135
assert task.status == AtlanTaskStatus.COMPLETE
136136
assert task.type == AtlanTaskType.CLASSIFICATION_PROPAGATION_ADD
137137
assert mock_async_api_caller._call_api.call_count == 2

0 commit comments

Comments
 (0)