diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index 47c5ea6..7aaf60c 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -35,7 +35,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout + - uses: actions/checkout@v3 - name: Setup Python 3.7 uses: actions/setup-python@v4 with: diff --git a/tests/integ/test_tracker.py b/tests/integ/test_tracker.py index aa33e43..421eafd 100644 --- a/tests/integ/test_tracker.py +++ b/tests/integ/test_tracker.py @@ -143,7 +143,6 @@ def test_create_default_bucket(boto3_session): def test_create_lineage_artifacts(trial_component_obj, bucket, tempdir, sagemaker_boto_client): - prefix = name() file_contents = "test lineage artifact" file_path = os.path.join(tempdir, "bar.txt") @@ -174,7 +173,6 @@ def validate(): def test_log_table_artifact(trial_component_obj, bucket, sagemaker_boto_client): - prefix = name() artifact_name = "TestTableTitle" diff --git a/tests/unit/test_base_types.py b/tests/unit/test_base_types.py index 1586c1e..00cd808 100644 --- a/tests/unit/test_base_types.py +++ b/tests/unit/test_base_types.py @@ -63,7 +63,6 @@ class DummyRecordSummary(_base_types.ApiObject): class DummyRecord(_base_types.Record): - _boto_create_method = "create" _boto_update_method = "update" _boto_delete_method = "delete" diff --git a/tests/unit/test_tracker.py b/tests/unit/test_tracker.py index 64d9038..719ee18 100644 --- a/tests/unit/test_tracker.py +++ b/tests/unit/test_tracker.py @@ -364,7 +364,6 @@ def test_log_multiple_output_artifact(under_test): def test_log_pr_curve(under_test): - y_true = [0, 0, 1, 1] y_scores = [0.1, 0.4, 0.35, 0.8] no_skill = 0.1 @@ -392,7 +391,6 @@ def test_log_pr_curve(under_test): def test_log_confusion_matrix(under_test): - y_true = [2, 0, 2, 2, 0, 1] y_pred = [0, 0, 2, 2, 0, 2] @@ -445,7 +443,6 @@ def test_artifact_uploader_init(artifact_uploader): def test_artifact_uploader_upload_artifact_file_not_exists(tempdir, artifact_uploader): - not_exist_file = os.path.join(tempdir, "not.exists") with pytest.raises(ValueError): artifact_uploader.upload_artifact(not_exist_file) @@ -591,7 +588,6 @@ def test_log_table_invalid_values(under_test): def test_log_table(under_test): - values = {"x": [1, 2, 3], "y": [4, 5, 6]} under_test._artifact_uploader.upload_object_artifact.return_value = ("s3uri_value", "etag_value") @@ -615,7 +611,6 @@ def test_log_table(under_test): def test_log_table_dataframe(under_test): - dataframe = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]}) under_test._artifact_uploader.upload_object_artifact.return_value = ("s3uri_value", "etag_value") diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index c2641e1..537b358 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -31,7 +31,6 @@ def test_sagemaker_client_endpoint_env_set(): def test_get_or_create_default_bucket_bucket_already_owned(boto3_session): - exception = botocore.exceptions.ClientError( error_response={"Error": {"Code": "BucketAlreadyOwnedByYou", "Message": "BucketAlreadyOwnedByYou"}}, operation_name="CreateBucket", @@ -46,7 +45,6 @@ def test_get_or_create_default_bucket_bucket_already_owned(boto3_session): def test_get_or_create_default_bucket_operation_aborted(boto3_session): - exception = botocore.exceptions.ClientError( error_response={"Error": {"Code": "OperationAborted", "Message": "foo conflicting conditional operation bar"}}, operation_name="CreateBucket",