Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
python-oss2
0001_Dont-use-mock.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001_Dont-use-mock.patch of Package python-oss2
diff -Nru oss2-2.18.4.orig/tests/test_crypto.py oss2-2.18.4/tests/test_crypto.py --- oss2-2.18.4.orig/tests/test_crypto.py 2023-12-28 13:16:21.000000000 +0100 +++ oss2-2.18.4/tests/test_crypto.py 2024-04-12 08:46:11.475946201 +0200 @@ -10,7 +10,7 @@ from oss2 import LocalRsaProvider, AliKMSProvider, RsaProvider, compat from oss2.utils import AESCipher, silently_remove from oss2.exceptions import OpenApiServerError, OpenApiFormatError, ClientError -from mock import patch +from unittest.mock import patch from .common import OSS_ID, OSS_SECRET, OSS_ENDPOINT, OSS_REGION, OSS_STS_ID, OSS_STS_ARN, OSS_STS_KEY, random_string, \ key_pair, key_pair_compact diff -Nru oss2-2.18.4.orig/tests/test_download.py oss2-2.18.4/tests/test_download.py --- oss2-2.18.4.orig/tests/test_download.py 2023-12-28 13:16:21.000000000 +0100 +++ oss2-2.18.4/tests/test_download.py 2024-04-12 08:46:11.562613727 +0200 @@ -8,7 +8,7 @@ import copy import tempfile -from mock import patch +from unittest.mock import patch from functools import partial from oss2.compat import to_unicode diff -Nru oss2-2.18.4.orig/tests/test_mock_bucket.py oss2-2.18.4/tests/test_mock_bucket.py --- oss2-2.18.4.orig/tests/test_mock_bucket.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/tests/test_mock_bucket.py 2024-04-12 08:46:11.499279765 +0200 @@ -3,7 +3,7 @@ import unittest import datetime -from mock import patch +from unittest.mock import patch from functools import partial import oss2 diff -Nru oss2-2.18.4.orig/tests/test_mock_multipart.py oss2-2.18.4/tests/test_mock_multipart.py --- oss2-2.18.4.orig/tests/test_mock_multipart.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/tests/test_mock_multipart.py 2024-04-12 08:46:11.535946795 +0200 @@ -5,7 +5,7 @@ import unittests from functools import partial -from mock import patch +from unittest.mock import patch class TestMultipart(unittests.common.OssTestCase): diff -Nru oss2-2.18.4.orig/tests/test_mock_object.py oss2-2.18.4/tests/test_mock_object.py --- oss2-2.18.4.orig/tests/test_mock_object.py 2023-12-28 13:16:21.000000000 +0100 +++ oss2-2.18.4/tests/test_mock_object.py 2024-04-12 08:46:11.519279963 +0200 @@ -10,7 +10,7 @@ from oss2 import utils from functools import partial -from mock import patch +from unittest.mock import patch import struct import copy from .common import * diff -Nru oss2-2.18.4.orig/tests/test_upload.py oss2-2.18.4/tests/test_upload.py --- oss2-2.18.4.orig/tests/test_upload.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/tests/test_upload.py 2024-04-12 08:46:11.502613132 +0200 @@ -10,7 +10,7 @@ from .common import * -from mock import patch +from unittest.mock import patch class TestUpload(OssTestCase): diff -Nru oss2-2.18.4.orig/unittests/test_bucket.py oss2-2.18.4/unittests/test_bucket.py --- oss2-2.18.4.orig/unittests/test_bucket.py 2023-12-28 13:16:21.000000000 +0100 +++ oss2-2.18.4/unittests/test_bucket.py 2024-04-12 08:46:11.442612537 +0200 @@ -2,7 +2,7 @@ import datetime -from mock import patch +from unittest.mock import patch from functools import partial from oss2 import to_string, iso8601_to_unixtime diff -Nru oss2-2.18.4.orig/unittests/test_iterator.py oss2-2.18.4/unittests/test_iterator.py --- oss2-2.18.4.orig/unittests/test_iterator.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/unittests/test_iterator.py 2024-04-12 08:46:11.422612339 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from mock import patch +from unittest.mock import patch from unittests.common import * from oss2.models import SimplifiedBucketInfo, SimplifiedObjectInfo, Owner diff -Nru oss2-2.18.4.orig/unittests/test_multipart.py oss2-2.18.4/unittests/test_multipart.py --- oss2-2.18.4.orig/unittests/test_multipart.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/unittests/test_multipart.py 2024-04-12 08:46:11.439279171 +0200 @@ -3,7 +3,7 @@ import oss2 from functools import partial -from mock import patch +from unittest.mock import patch from unittests.common import * diff -Nru oss2-2.18.4.orig/unittests/test_object.py oss2-2.18.4/unittests/test_object.py --- oss2-2.18.4.orig/unittests/test_object.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/unittests/test_object.py 2024-04-12 08:46:11.415945606 +0200 @@ -5,7 +5,7 @@ from functools import partial from oss2 import to_string -from mock import patch +from unittest.mock import patch from unittests.common import * diff -Nru oss2-2.18.4.orig/unittests/test_select_object.py oss2-2.18.4/unittests/test_select_object.py --- oss2-2.18.4.orig/unittests/test_select_object.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.4/unittests/test_select_object.py 2024-04-12 08:46:11.432612438 +0200 @@ -8,7 +8,7 @@ from functools import partial from oss2 import to_string -from mock import patch +from unittest.mock import patch from oss2 import xml_utils from oss2 import utils from oss2.exceptions import SelectOperationClientError
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor