Skip to content

Commit 684d45d

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit/sagemaker/lineage/test_query.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,11 @@ def test_get_visualization_elements(sagemaker_session):
533533
"Vertices": [
534534
{"Arn": "arn1", "Type": "Endpoint", "LineageType": "Artifact"},
535535
{"Arn": "arn2", "Type": "Model", "LineageType": "Context"},
536+
{
537+
"Arn": "arn:aws:sagemaker:us-west-2:0123456789012:context/mycontext",
538+
"Type": "Model",
539+
"LineageType": "Context",
540+
},
536541
],
537542
"Edges": [{"SourceArn": "arn1", "DestinationArn": "arn2", "AssociationType": "Produced"}],
538543
}
@@ -545,6 +550,12 @@ def test_get_visualization_elements(sagemaker_session):
545550

546551
assert elements["nodes"][0] == ("arn1", "Endpoint", "Artifact", False)
547552
assert elements["nodes"][1] == ("arn2", "Model", "Context", False)
553+
assert elements["nodes"][2] == (
554+
"arn:aws:sagemaker:us-west-2:0123456789012:context/mycontext",
555+
"Model",
556+
"Context",
557+
True,
558+
)
548559
assert elements["edges"][0] == ("arn1", "arn2", "Produced")
549560

550561

0 commit comments

Comments
 (0)