Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Virtualization:Appliances:Images
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.0.orig/tests/test_crypto.py oss2-2.18.0/tests/test_crypto.py --- oss2-2.18.0.orig/tests/test_crypto.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_crypto.py 2023-08-16 11:22:31.534128694 +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_REGION, OSS_CMK_REGION, OSS_CMK, OSS_STS_ID, OSS_STS_ARN, OSS_STS_KEY, random_string, \ key_pair, key_pair_compact diff -Nru oss2-2.18.0.orig/tests/test_download.py oss2-2.18.0/tests/test_download.py --- oss2-2.18.0.orig/tests/test_download.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_download.py 2023-08-16 11:22:31.600795550 +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.0.orig/tests/test_mock_bucket.py oss2-2.18.0/tests/test_mock_bucket.py --- oss2-2.18.0.orig/tests/test_mock_bucket.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_mock_bucket.py 2023-08-16 11:22:31.550795408 +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.0.orig/tests/test_mock_multipart.py oss2-2.18.0/tests/test_mock_multipart.py --- oss2-2.18.0.orig/tests/test_mock_multipart.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_mock_multipart.py 2023-08-16 11:22:31.590795522 +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.0.orig/tests/test_mock_object.py oss2-2.18.0/tests/test_mock_object.py --- oss2-2.18.0.orig/tests/test_mock_object.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_mock_object.py 2023-08-16 11:22:31.577462150 +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.0.orig/tests/test_upload.py oss2-2.18.0/tests/test_upload.py --- oss2-2.18.0.orig/tests/test_upload.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/tests/test_upload.py 2023-08-16 11:22:31.564128779 +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.0.orig/unittests/test_bucket.py oss2-2.18.0/unittests/test_bucket.py --- oss2-2.18.0.orig/unittests/test_bucket.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/unittests/test_bucket.py 2023-08-16 11:22:31.470795180 +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.0.orig/unittests/test_iterator.py oss2-2.18.0/unittests/test_iterator.py --- oss2-2.18.0.orig/unittests/test_iterator.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/unittests/test_iterator.py 2023-08-16 11:22:31.450795123 +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.0.orig/unittests/test_multipart.py oss2-2.18.0/unittests/test_multipart.py --- oss2-2.18.0.orig/unittests/test_multipart.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/unittests/test_multipart.py 2023-08-16 11:22:31.464128494 +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.0.orig/unittests/test_object.py oss2-2.18.0/unittests/test_object.py --- oss2-2.18.0.orig/unittests/test_object.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/unittests/test_object.py 2023-08-16 11:22:31.447461780 +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.0.orig/unittests/test_select_object.py oss2-2.18.0/unittests/test_select_object.py --- oss2-2.18.0.orig/unittests/test_select_object.py 2023-05-29 14:57:23.000000000 +0200 +++ oss2-2.18.0/unittests/test_select_object.py 2023-08-16 11:22:31.454128466 +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