summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* Removing command on initial connections (#1722)v4.0.1Chayim2021-11-171-1/+2
|
* Unit tests fixes for compatibility (#1703)Chayim2021-11-141-5/+5
|
* Fixes to allow --redis-url to pass through all tests (#1700)Chayim2021-11-111-0/+18
|
* Unit test fixes to carry pytest options through all tests (#1696)Chayim2021-11-101-7/+13
|
* Support for json multipath ($) (#1663)Chayim2021-11-041-1/+2
|
* Adding support for redisearch (#1640)Chayim2021-10-251-3/+12
|
* redisjson support (#1636)Chayim2021-10-251-0/+33
|
* Removing packaging dependency (#1626)Chayim2021-10-191-4/+4
|
* Removing the REDIS_6_VERSION placeholder (#1582)Chayim2021-10-111-6/+0
|
* CLIENT REPLY support, available since redis 3.2.0 (#1581)Chayim2021-09-301-0/+6
|
* Use Version instead of StrictVersion since distutils is deprecated. (#1552)Karthikeyan Singaravelan2021-08-291-4/+4
|
* Add retry mechanism with backoff (#1494)nbraun-amazon2021-08-181-0/+3
|
* Added the ACL LOG command available in Redis 6Andy McCurdy2020-08-191-8/+21
| | | | | | | | | `acl_log()` returns a list of dictionaries, each describing a log entry. `acl_log_reset()` instructs the server to truncate the log. Thanks @2014BDuck Fixes #1307
* Remove support for end-of-life Python 2.7 (#1318)Jon Dufresne2020-08-061-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove support for end-of-life Python 2.7 Python 2.7 is end of life. It is no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards a modern Python 3 style. Python 2.7 users can continue to use the previous version of redis-py. Was able to simplify the code: - Removed redis._compat module - Removed __future__ imports - Removed object from class definition (all classes are new style) - Removed long (Python 3 unified numeric types) - Removed deprecated __nonzero__ method - Use simpler Python 3 super() syntax - Use unified OSError exception - Use yield from syntax Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* Use the existing --redis-url param to get master hostAndrew Brookins2020-07-101-9/+7
|
* Fix flake8 errorsAndrew Brookins2020-07-091-2/+0
|
* Pass the master hostname to testsAndrew Brookins2020-07-091-1/+6
|
* WIP on base imageAndrew Brookins2020-07-091-2/+9
|
* constant for redis 6 RC candidates in tests.Andy McCurdy2020-03-121-0/+6
| | | | replace with a '6.0.0' literal when Redis 6 is GA
* Clear pipeline watch state after execNick Gaya2020-03-101-0/+21
|
* Enable warnings during tests and fix discovered cases (#1283)Jon Dufresne2020-02-121-2/+4
| | | | | | Helps identify problematic or buggy code. When a warning is displayed, it should be analyzed and fixed. The r and r2 fixture now close the client after the test is complete.
* Ability to create a client that uses a single connectionAndy McCurdy2019-07-231-12/+10
| | | | | | | | | | | | | This has multiple uses: * Single connection clients will not be considered threadsafe. This means certain settings could temporarily be adjusted. For example, a context manager could temporarily modify the encoding behavior for a set of commands. * We can introduce more thorough health checks that only happen when a connection is handed out from the connection pool. * Workloads that issue many commands to Redis should be slightly faster. Prior to this change, the client must retrieve a connection from the pool for each command.
* Add redis_url cmdline argument for tests (#1170)Grygorii Iermolenko2019-06-061-31/+46
| | | Users can now specify --redis-url when running the test suite to choose a specific server.
* Merge pull request #972 from lamby/dont-assume-64-bit-server-in-testsAndy McCurdy2019-01-271-7/+14
|\ | | | | Skip 64-bit specific tests. (Closes: #899)
| * Skip 64-bit specific tests. (Closes: #899)Chris Lamb2018-11-161-7/+14
| | | | | | | | Signed-off-by: Chris Lamb <lamby@debian.org>
* | the fix to TimeoutErrors had a side affect on test teardownsAndy McCurdy2019-01-271-1/+6
| |
* | Code review fixesTheo Despoudis2018-12-061-2/+1
| | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
* | Add client kill with filterTheo Despoudis2018-12-041-0/+9
|/ | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
* remove legacy Redis classAndy McCurdy2018-11-131-5/+0
| | | | | | | | | | | | | | | | | | | redis-py maintained backwards compatibility by keeping the old "Redis" class around for quite some time. While no doubt a convenience for folks who relied on it, the presence of both Redis and StrictRedis causes a number of support issues and general confusion. With 3.0, we're breaking a few things to make redis-py better going forward. This change removes the old Redis class. We also renamed the StrictRedis class to Redis and aliased StrictRedis to Redis. For people that have been using StrictRedis, this should not change anything. You can continue doing things as you are. People still using the legacy Redis class will need to update the argument order for the SETEX, LREM and ZADD commands. Additionally, the return values for TTL and PTTL now return the integer values -1 when a key exists but has no expire time and -2 when a key does not exist. Previously these cases returned a None value in the Redis class.
* GEOPOS returns different values from redis 3.2 to redis 4.0Andy McCurdy2017-08-151-0/+5
| | | | | update test suite to test the appropriate return type based on server version
* pep8 codeiandyh2016-02-191-2/+4
|
* format long mocked response stringiandyh2016-02-181-2/+23
|
* redis cluster commandsiandyh2015-12-011-0/+44
|
* make sure we know the order of expected subscribe/unsubscribe messagesAndy McCurdy2014-03-291-3/+4
|
* fixes PubSub.subscribe once and for all.Andy McCurdy2014-03-281-2/+19
|
* pubsub testsandy2013-06-061-1/+3
|
* encoding testsandy2013-06-061-6/+6
|
* pytest config fileandy2013-06-041-0/+26