@@ -1105,7 +1105,9 @@ def test_pyspark_processor_configuration_path_pipeline_config(
1105
1105
1106
1106
@patch ("sagemaker.workflow.utilities._pipeline_config" , MOCKED_PIPELINE_CONFIG )
1107
1107
def test_get_codeartifact_command (pipeline_session ):
1108
- codeartifact_repo_arn = "arn:aws:codeartifact:us-west-2:012345678901:repository/test-domain/test-repository"
1108
+ codeartifact_repo_arn = (
1109
+ "arn:aws:codeartifact:us-west-2:012345678901:repository/test-domain/test-repository"
1110
+ )
1109
1111
1110
1112
processor = PyTorchProcessor (
1111
1113
role = ROLE ,
@@ -1116,9 +1118,14 @@ def test_get_codeartifact_command(pipeline_session):
1116
1118
sagemaker_session = pipeline_session ,
1117
1119
)
1118
1120
1119
- codeartifact_command = processor ._get_codeartifact_command (codeartifact_repo_arn = codeartifact_repo_arn )
1121
+ codeartifact_command = processor ._get_codeartifact_command (
1122
+ codeartifact_repo_arn = codeartifact_repo_arn
1123
+ )
1120
1124
1121
- assert codeartifact_command == "aws codeartifact login --tool pip --domain test-domain --domain-owner 012345678901 --repository test-repository --region us-west-2" # noqa: E501
1125
+ assert (
1126
+ codeartifact_command
1127
+ == "aws codeartifact login --tool pip --domain test-domain --domain-owner 012345678901 --repository test-repository --region us-west-2"
1128
+ ) # noqa: E501
1122
1129
1123
1130
1124
1131
@patch ("sagemaker.workflow.utilities._pipeline_config" , MOCKED_PIPELINE_CONFIG )
@@ -1193,7 +1200,9 @@ def test_generate_framework_script_with_codeartifact(pipeline_session):
1193
1200
1194
1201
framework_script = processor ._generate_framework_script (
1195
1202
user_script = "process.py" ,
1196
- codeartifact_repo_arn = "arn:aws:codeartifact:us-west-2:012345678901:repository/test-domain/test-repository"
1203
+ codeartifact_repo_arn = (
1204
+ "arn:aws:codeartifact:us-west-2:012345678901:repository/test-domain/test-repository"
1205
+ ),
1197
1206
)
1198
1207
1199
1208
assert framework_script == dedent (
0 commit comments