Skip to content

Commit d20f42b

Browse files
author
Roja Reddy Sareddy
committed
resolve unit tests for mlflow
1 parent aa7b5a9 commit d20f42b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/sagemaker/mlflow/test_forward_sagemaker_metrics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ def getenv_side_effect(arg, default=None):
217217
mock_response.text = json.dumps({})
218218

219219
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"].status_code = 200
220-
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"].text = json.dumps({
221-
"run_id": "test_run_id",
222-
"status": "FINISHED"
223-
})
220+
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/update"].text = json.dumps(
221+
{"run_id": "test_run_id", "status": "FINISHED"}
222+
)
224223

225224
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate"].status_code = 200
226225
mock_responses["https://test.sagemaker.aws/api/2.0/mlflow/runs/terminate"].text = json.dumps({})

0 commit comments

Comments
 (0)