Skip to content

Commit b525d11

Browse files
MarcinGinsztAllda
authored andcommitted
linters and tests
1 parent 323b464 commit b525d11

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

operator-pipeline-images/operatorcert/entrypoints/upload_artifacts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def upload_artifact(args: Any, file_path: str, org_id: Any = None) -> Dict[str,
9393
Dict[str, Any]: Pyxis response
9494
"""
9595
upload_url = urljoin(
96-
args.pyxis_url, f"/containers/v1/projects/certification/id/{args.cert_project_id}/artifacts"
96+
args.pyxis_url,
97+
f"/containers/v1/projects/certification/id/{args.cert_project_id}/artifacts",
9798
)
9899
file_name = os.path.basename(file_path)
99100
file_size = os.path.getsize(file_path)

operator-pipeline-images/tests/entrypoints/test_upload_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_upload_artifact(mock_post: MagicMock, mock_b64) -> None:
2929
upload_artifacts.upload_artifact(args, filename, 1)
3030

3131
mock_post.assert_called_once_with(
32-
"http://foo.com/v1/projects/certification/id/123123/artifacts",
32+
"http://foo.com/containers/v1/projects/certification/id/123123/artifacts",
3333
{
3434
"content": "a",
3535
"certification_hash": args.certification_hash,

0 commit comments

Comments
 (0)