Files
python-redis/remove-mock.patch
Daniel Garcia 1e31050b26 Tests depend on https://build.opensuse.org/request/show/1284860
- Update to 6.2.0:
  * https://github.com/redis/redis-py/releases/tag/v6.2.0
  * https://github.com/redis/redis-py/releases/tag/v6.1.0
  * https://github.com/redis/redis-py/releases/tag/v6.0.0
  * https://github.com/redis/redis-py/releases/tag/v5.3.0
- Drop pytest-asyncio-045.patch
  * Fixed upstream
- Add remove-mock.patch
  * Use built-in unittest.mock
- Don't remove test_graph.py
  * The test was dropped upstream
- Add new python-redis-entraid and pytest-mock dependencies for tests
- Add new hatchling build requirement
  * Remove setuptools and wheel which is longer needed
- Move test suite to separate flavor to avoid dependency cycle with
  python-redis-entraid
  * Add _multibuild
  * Move some dependencies that were only needed for tests to the new
    flavor
- Update skipped test list due to gh#python/cpython#70654
  * Skip test_re_auth_pub_sub_in_resp3
  * Skip test_do_not_re_auth_pub_sub_in_resp2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=101
2025-06-12 08:01:07 +00:00

27 lines
1.0 KiB
Diff

Index: b/tests/test_asyncio/test_credentials.py
===================================================================
--- a/tests/test_asyncio/test_credentials.py
+++ b/tests/test_asyncio/test_credentials.py
@@ -8,7 +8,7 @@ from typing import Optional, Tuple, Unio
import pytest
import pytest_asyncio
import redis
-from mock.mock import Mock, call
+from unittest.mock import Mock, call
from redis import AuthenticationError, DataError, RedisError, ResponseError
from redis.asyncio import Connection, ConnectionPool, Redis
from redis.asyncio.retry import Retry
Index: b/tests/test_credentials.py
===================================================================
--- a/tests/test_credentials.py
+++ b/tests/test_credentials.py
@@ -7,7 +7,7 @@ from typing import Optional, Tuple, Unio
import pytest
import redis
-from mock.mock import Mock, call
+from unittest.mock import Mock, call
from redis import AuthenticationError, DataError, Redis, ResponseError
from redis.auth.err import RequestTokenErr
from redis.backoff import NoBackoff