Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
12 kB · 397 lines
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398diff --git a/tests/aio/test_storage.py b/tests/aio/test_storage.pyindex 43fc5b1..9aa86ed 100644--- a/tests/aio/test_storage.py+++ b/tests/aio/test_storage.py@@ -153,94 +153,6 @@ class TestBaseStorage: marks=pytest.mark.memory, id="in-memory", ),- pytest.param(- "async+redis://localhost:7379",- {},- RedisStorage,- lf("redis_basic"),- marks=pytest.mark.redis,- id="redis",- ),- pytest.param(- "async+redis+unix:///tmp/limits.redis.sock",- {},- RedisStorage,- lf("redis_uds"),- marks=pytest.mark.redis,- id="redis-uds",- ),- pytest.param(- "async+redis+unix://:password/tmp/limits.redis.sock",- {},- RedisStorage,- lf("redis_uds"),- marks=pytest.mark.redis,- id="redis-uds-auth",- ),- pytest.param(- "async+memcached://localhost:22122",- {},- MemcachedStorage,- lf("memcached"),- marks=pytest.mark.memcached,- id="memcached",- ),- pytest.param(- "async+memcached://localhost:22122,localhost:22123",- {},- MemcachedStorage,- lf("memcached_cluster"),- marks=pytest.mark.memcached,- id="memcached-cluster",- ),- pytest.param(- "async+redis+sentinel://localhost:26379",- {"service_name": "mymaster"},- RedisSentinelStorage,- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel",- ),- pytest.param(- "async+redis+sentinel://localhost:26379/mymaster",- {},- RedisSentinelStorage,- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel-service-name-url",- ),- pytest.param(- "async+redis+sentinel://:sekret@localhost:36379/mymaster",- {"password": "sekret"},- RedisSentinelStorage,- lf("redis_sentinel_auth"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel-auth",- ),- pytest.param(- "async+redis+cluster://localhost:7001/",- {},- RedisClusterStorage,- lf("redis_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster",- ),- pytest.param(- "async+redis+cluster://:sekret@localhost:8400/",- {},- RedisClusterStorage,- lf("redis_auth_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster-auth",- ),- pytest.param(- "async+mongodb://localhost:37017/",- {},- MongoDBStorage,- lf("mongodb"),- marks=pytest.mark.mongodb,- id="mongodb",- ), ], ) class TestConcreteStorages:diff --git a/tests/test_storage.py b/tests/test_storage.pyindex f9698c0..2062e3a 100644--- a/tests/test_storage.py+++ b/tests/test_storage.py@@ -148,102 +148,6 @@ class TestBaseStorage: "uri, args, expected_instance, fixture", [ pytest.param("memory://", {}, MemoryStorage, None, id="in-memory"),- pytest.param(- "redis://localhost:7379",- {},- RedisStorage,- lf("redis_basic"),- marks=pytest.mark.redis,- id="redis",- ),- pytest.param(- "redis+unix:///tmp/limits.redis.sock",- {},- RedisStorage,- lf("redis_uds"),- marks=pytest.mark.redis,- id="redis-uds",- ),- pytest.param(- "redis+unix://:password/tmp/limits.redis.sock",- {},- RedisStorage,- lf("redis_uds"),- marks=pytest.mark.redis,- id="redis-uds-auth",- ),- pytest.param(- "memcached://localhost:22122",- {},- MemcachedStorage,- lf("memcached"),- marks=pytest.mark.memcached,- id="memcached",- ),- pytest.param(- "memcached://localhost:22122,localhost:22123",- {},- MemcachedStorage,- lf("memcached_cluster"),- marks=pytest.mark.memcached,- id="memcached-cluster",- ),- pytest.param(- "memcached:///tmp/limits.memcached.sock",- {},- MemcachedStorage,- lf("memcached_uds"),- marks=pytest.mark.memcached,- id="memcached-uds",- ),- pytest.param(- "redis+sentinel://localhost:26379",- {"service_name": "mymaster"},- RedisSentinelStorage,- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel",- ),- pytest.param(- "redis+sentinel://localhost:26379/mymaster",- {},- RedisSentinelStorage,- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel-service-name-url",- ),- pytest.param(- "redis+sentinel://:sekret@localhost:36379/mymaster",- {"password": "sekret"},- RedisSentinelStorage,- lf("redis_sentinel_auth"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel-auth",- ),- pytest.param(- "redis+cluster://localhost:7001/",- {},- RedisClusterStorage,- lf("redis_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster",- ),- pytest.param(- "redis+cluster://:sekret@localhost:8400/",- {},- RedisClusterStorage,- lf("redis_auth_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster-auth",- ),- pytest.param(- "mongodb://localhost:37017/",- {},- MongoDBStorage,- lf("mongodb"),- marks=pytest.mark.mongodb,- id="mongodb",- ), ], ) class TestConcreteStorages:diff --git a/tests/utils.py b/tests/utils.pyindex 3341bcf..6dc2bc3 100644--- a/tests/utils.py+++ b/tests/utils.py@@ -90,186 +90,11 @@ ALL_STORAGES = { "memory": pytest.param( "memory://", {}, None, marks=pytest.mark.memory, id="in-memory" ),- "redis": pytest.param(- "redis://localhost:7379",- {},- lf("redis_basic"),- marks=pytest.mark.redis,- id="redis_basic",- ),- "memcached": pytest.param(- "memcached://localhost:22122",- {},- lf("memcached"),- marks=[pytest.mark.memcached, pytest.mark.flaky],- id="memcached",- ),- "memcached-cluster": pytest.param(- "memcached://localhost:22122,localhost:22123",- {},- lf("memcached_cluster"),- marks=[pytest.mark.memcached, pytest.mark.flaky],- id="memcached-cluster",- ),- "redis-cluster": pytest.param(- "redis+cluster://localhost:7001/",- {},- lf("redis_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster",- ),- "redis-cluster_auth": pytest.param(- "redis+cluster://:sekret@localhost:8400/",- {},- lf("redis_auth_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster-auth",- ),- "redis-ssl-cluster": pytest.param(- "redis+cluster://localhost:8301",- {- "ssl": True,- "ssl_cert_reqs": "required",- "ssl_keyfile": "./tests/tls/client.key",- "ssl_certfile": "./tests/tls/client.crt",- "ssl_ca_certs": "./tests/tls/ca.crt",- },- lf("redis_ssl_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-ssl-cluster",- ),- "redis-sentinel": pytest.param(- "redis+sentinel://localhost:26379/mymaster",- {"use_replicas": False},- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel",- ),- "mongodb": pytest.param(- "mongodb://localhost:37017/",- {},- lf("mongodb"),- marks=pytest.mark.mongodb,- id="mongodb",- ),- "valkey": pytest.param(- "valkey://localhost:12379",- {},- lf("valkey_basic"),- marks=pytest.mark.valkey,- id="valkey_basic",- ),- "valkey-cluster": pytest.param(- "valkey+cluster://localhost:2001/",- {},- lf("valkey_cluster"),- marks=pytest.mark.valkey_cluster,- id="valkey-cluster",- ), } ALL_STORAGES_ASYNC = { "memory": pytest.param( "async+memory://", {}, None, marks=pytest.mark.memory, id="in-memory" ),- "redis": pytest.param(- "async+redis://localhost:7379",- {- "implementation": ASYNC_REDIS_IMPLEMENTATION,- },- lf("redis_basic"),- marks=pytest.mark.redis,- id="redis",- ),- "memcached": pytest.param(- "async+memcached://localhost:22122",- {- "implementation": ASYNC_MEMCACHED_IMPLEMENTATION,- },- lf("memcached"),- marks=[pytest.mark.memcached, pytest.mark.flaky],- id="memcached",- ),- "memcached-cluster": pytest.param(- "async+memcached://localhost:22122,localhost:22123",- {- "implementation": ASYNC_MEMCACHED_IMPLEMENTATION,- },- lf("memcached_cluster"),- marks=[pytest.mark.memcached, pytest.mark.flaky],- id="memcached-cluster",- ),- "memcached-sasl": pytest.param(- "async+memcached://user:password@localhost:22124",- {- "implementation": ASYNC_MEMCACHED_IMPLEMENTATION,- },- lf("memcached_sasl"),- marks=[pytest.mark.memcached, pytest.mark.flaky],- id="memcached-sasl",- ),- "redis-cluster": pytest.param(- "async+redis+cluster://localhost:7001/",- {- "implementation": ASYNC_REDIS_IMPLEMENTATION,- },- lf("redis_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster",- ),- "redis-cluster-auth": pytest.param(- "async+redis+cluster://:sekret@localhost:8400/",- {- "implementation": ASYNC_REDIS_IMPLEMENTATION,- },- lf("redis_auth_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-cluster-auth",- ),- "redis-ssl-cluster": pytest.param(- "async+redis+cluster://localhost:8301",- {- "ssl": True,- "ssl_cert_reqs": "required",- "ssl_keyfile": "./tests/tls/client.key",- "ssl_certfile": "./tests/tls/client.crt",- "ssl_ca_certs": "./tests/tls/ca.crt",- "implementation": ASYNC_REDIS_IMPLEMENTATION,- },- lf("redis_ssl_cluster"),- marks=pytest.mark.redis_cluster,- id="redis-ssl-cluster",- ),- "redis-sentinel": pytest.param(- "async+redis+sentinel://localhost:26379/mymaster",- {- "use_replicas": False,- "implementation": ASYNC_REDIS_IMPLEMENTATION,- },- lf("redis_sentinel"),- marks=pytest.mark.redis_sentinel,- id="redis-sentinel",- ),- "mongodb": pytest.param(- "async+mongodb://localhost:37017/",- {},- lf("mongodb"),- marks=pytest.mark.mongodb,- id="mongodb",- ),- "valkey": pytest.param(- "async+valkey://localhost:12379",- {},- lf("valkey_basic"),- marks=pytest.mark.valkey,- id="valkey_basic",- ),- "valkey-cluster": pytest.param(- "async+valkey+cluster://localhost:2001/",- {},- lf("valkey_cluster"),- marks=pytest.mark.valkey_cluster,- id="valkey-cluster",- ), } all_storage = pytest.mark.parametrize("uri, args, fixture", ALL_STORAGES.values())