summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Zunion (#1522)Avital Fine2021-08-151-0/+20
| | | | | | | | | | | | | | | | | * zinter * change options in _zaggregate * skip for previous versions * add client function * validate the aggregate value * change options to get * add more aggregate tests * add weights guidance
* Adding support for CLIENT LIST with ID (#1505)Chayim2021-08-151-0/+8
|
* MINID and LIMIT support for xtrim (#1508)Chayim2021-08-151-0/+41
|
* implementing the LMOVE and BLMOVE commands (#1504)Chayim2021-08-151-0/+12
|
* Added GET argument to SET command (#1412)Jiekun2021-08-081-0/+8
|
* xautoclaim (#1529)Avital Fine2021-08-051-1/+47
|
* add idle to xpending (#1523)Avital Fine2021-08-051-0/+46
|
* Add a count parameter to lpop/rpop for redis >= 6.2.0 (#1487)Gal Ben David2021-08-051-0/+16
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Updating base testing docker to redis 6.2.5 (#1536)Chayim2021-08-051-7/+1
|
* fix getex flaky testsAvital Fine2021-08-051-1/+1
|
* zinter (#1520)Avital Fine2021-08-011-0/+22
| | | | | | | | | | | | | | | | | | | * zinter * change options in _zaggregate * skip for previous versions * flake8 * validate the aggregate value * invalid aggregation * invalid aggregation * change options to get Co-authored-by: Chayim <chayim@users.noreply.github.com>
* zdiff and zdiffstore (#1518)Avital Fine2021-07-291-0/+15
|
* Zrangestore (#1521)Avital Fine2021-07-291-0/+10
|
* LT and GT support for ZADD (#1509)Chayim2021-07-291-0/+17
| | | | Co-authored-by: malinaa96 <52569986+malinaa96@users.noreply.github.com> Co-authored-by: Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com>
* zrandmember (#1519)Avital Fine2021-07-251-0/+12
|
* getdel (#1514)Avital Fine2021-07-251-0/+7
|
* Implements CLIENT KILL laddr filter (#1506)Chayim2021-07-251-0/+20
|
* support for client unpause (#1512)Chayim2021-07-251-0/+4
|
* NOMKSTREAM support for XADD (#1507)Chayim2021-07-251-0/+10
|
* hrandfield (#1513)Avital Fine2021-07-221-0/+13
| | | | | | | | | | | | | * hrandfield * use mapping in hset * skip if version not fit * remove empty line * flake8 comments * new line for each comment
* client_list (#1517)Avital Fine2021-07-221-0/+6
|
* getex (#1515)Avital Fine2021-07-221-0/+15
| | | | | | | * getex * flake8 fix * comments
* Add support for COPY command new in Redis 6.2 (#1492)malinaa962021-07-201-0/+23
|
* changing unit tests to account for defaults in redis flags (#1499)Chayim2021-07-151-19/+18
| | | Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* Add support for the ABSTTL option of the RESTORE command. (#1423)Simon Charette2020-11-221-0/+13
| | | Add support for the ABSTTL option of the RESTORE command.
* Added the ACL LOG command available in Redis 6Andy McCurdy2020-08-191-2/+42
| | | | | | | | | `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-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* LPOS: add new command (#1354)Paul Spooren2020-07-221-0/+32
| | | | | Added the LPOS command from Redis 6.0.6 Fixes #1353
* Dockerize (#1365)Andy McCurdy2020-07-201-4/+2
|\ | | | | | | | | | | | | | | | | Provide a docker development and testing environment * CI (Travis) now runs tests via the same docker environment that is available to developers. * A simple Makefile has been added to make getting started easier. * `make dev` will standup the development environment. * `make test` will standup the development environment and also run the test suite. * `make clean` will remove the development environment.
| * make the slowlog_get test more resilient to multiple clients being connectedAndy McCurdy2020-07-201-4/+2
| |
* | Support for loading, unloading and listing Redis Modules (#1360)Roey Prat2020-07-131-0/+5
|/ | | | | | | | | | | * Support for loading, unloading and listing Redis Modules * minor fixes for flake * unit test for module list - only the empty use case * ModuleError should inherit from ResponseError rather than RedisError Co-authored-by: Vamsi Atluri <vamc19@gmail.com>
* Fix for HSET argument validation to allow any non-None keyAleksMat2020-05-091-0/+4
| | | | | Fixes #1337 Fixes #1341
* Remove unnecessary coerce to list (#1321)Jon Dufresne2020-04-131-1/+1
| | | | sorted() takes any iterable and always returns a new list. No need to eagerly coerce to a list.
* constant for redis 6 RC candidates in tests.Andy McCurdy2020-03-121-14/+14
| | | | replace with a '6.0.0' literal when Redis 6 is GA
* add keepttl option to set command.laixintao2020-03-121-0/+9
| | | | | fixes #1304 fixes #1280
* mark test_spop_multi_value as needing server 3.2.0 or greaterAndy McCurdy2020-03-031-0/+1
| | | | fixes #1298
* add support for the MEMORY STATS commandAndy McCurdy2020-02-251-0/+11
| | | | Fixes #1268
* Improve Redis.hmset() warning messageJon Dufresne2020-02-121-13/+15
| | | | | | | | | It now describe what is deprecated and displays for the callers line by using stacklevel=2. The warning is now tested and not emitted during normal test runs. Fixes #1282
* Make hset support multiple field/value pairs. (#1271)赖信涛2020-02-071-1/+16
| | | | | | | | | | | | * make `hset` command support multi field/value pairs. see: https://redis.io/commands/hset close https://github.com/andymccurdy/redis-py/issues/1269 deprecated: hmset Co-authored-by: Alan Mai <0110amai@gmail.com>
* add type filter to scan functionnetocp2020-01-301-0/+8
| | | | Fixed #1220
* Added support for ACL commandsAndy McCurdy2019-12-281-1/+175
|
* PING/PONG health checksAndy McCurdy2019-07-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | The `Redis` class and the `ConnectionPool` class now support the "health_check_interval=N" option. By default N=0, which turns off health checks. `N` should be an integer, and when greater than 0, ensures that a health check is performed just before command execution anytime the underlying connection has been idle for more than N seconds. A health check is a full PING/PONG round trip to the Redis server. If a health check encounters a ConnectionError or TimeoutError, the connection is disconnected and reconnected and the health check is retried exactly once. Any error during the retry is raised to the caller. Health check retries are not governed by any other options such as `retry_on_timeout`. In systems where idle times are common, these health checks are the intended way to reconnect to the Redis server without harming any user data. When this option is enabled for PubSub connections, calling `get_message()` or `listen()` will send a health check anytime a message has not been read on the PubSub connection for `health_check_interval` seconds. Users should call `get_message()` or `listen()` at least every `health_check_interval` seconds in order to keep the connection open.
* Ability to create a client that uses a single connectionAndy McCurdy2019-07-231-30/+49
| | | | | | | | | | | | | 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.
* Handle removed claimed messages without an exceptionThomas Daskalakis2019-07-171-0/+25
| | | | Fixes #1191
* Add READONLY and READWRITE commandsTheo Despoudis2019-07-091-0/+13
|
* case insensitive response callbacks.Andy McCurdy2019-05-281-0/+3
| | | | | | | this change allows users to call client.execute_command('info') or client.execute_command('INFO') and get the same parsed result. Fixes #1168
* Merge pull request #972 from lamby/dont-assume-64-bit-server-in-testsAndy McCurdy2019-01-271-1/+6
|\ | | | | Skip 64-bit specific tests. (Closes: #899)
| * Skip 64-bit specific tests. (Closes: #899)Chris Lamb2018-11-161-1/+6
| | | | | | | | Signed-off-by: Chris Lamb <lamby@debian.org>
* | Added a test for #1126Andy McCurdy2019-01-271-2/+2
| |
* | Fixes #1116Andy McCurdy2019-01-271-1/+1
| |