@@ -1105,7 +1105,9 @@ def test_pyspark_processor_configuration_path_pipeline_config(
11051105
11061106@patch ("sagemaker.workflow.utilities._pipeline_config" , MOCKED_PIPELINE_CONFIG )
11071107def 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+ )
11091111
11101112 processor = PyTorchProcessor (
11111113 role = ROLE ,
@@ -1116,9 +1118,14 @@ def test_get_codeartifact_command(pipeline_session):
11161118 sagemaker_session = pipeline_session ,
11171119 )
11181120
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+ )
11201124
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
11221129
11231130
11241131@patch ("sagemaker.workflow.utilities._pipeline_config" , MOCKED_PIPELINE_CONFIG )
@@ -1193,7 +1200,9 @@ def test_generate_framework_script_with_codeartifact(pipeline_session):
11931200
11941201 framework_script = processor ._generate_framework_script (
11951202 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+ ),
11971206 )
11981207
11991208 assert framework_script == dedent (
0 commit comments