Skip to content

Commit ab2d3e2

Browse files
author
Yi-Ting Lee
committed
startarn added to lineage return value
1 parent 09c9fc1 commit ab2d3e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/sagemaker/lineage/test_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def test_get_visualization_elements(sagemaker_session):
533533
"Vertices": [
534534
{"Arn": "arn1", "Type": "Endpoint", "LineageType": "Artifact"},
535535
{"Arn": "arn2", "Type": "Model", "LineageType": "Context"},
536+
{"Arn": "arn:aws:sagemaker:us-west-2:0123456789012:context/mycontext", "Type": "Model", "LineageType": "Context"},
536537
],
537538
"Edges": [{"SourceArn": "arn1", "DestinationArn": "arn2", "AssociationType": "Produced"}],
538539
}
@@ -545,6 +546,7 @@ def test_get_visualization_elements(sagemaker_session):
545546

546547
assert elements["nodes"][0] == ("arn1", "Endpoint", "Artifact", False)
547548
assert elements["nodes"][1] == ("arn2", "Model", "Context", False)
549+
assert elements["nodes"][2] == ("arn:aws:sagemaker:us-west-2:0123456789012:context/mycontext", "Model", "Context", True)
548550
assert elements["edges"][0] == ("arn1", "arn2", "Produced")
549551

550552

0 commit comments

Comments
 (0)