summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* add str support for set ex parameter (#2529)shacharPash2023-01-051-0/+7
|
* Combine auto-concatenated strings (#2482)David Gilman2022-12-141-1/+1
|
* Add support for certain LATENCY commands (#2503)dvora-h2022-12-141-2/+9
| | | | | * add latency commands * fix tests in cluster
* Intentional NotImplementedError for LATENCY commands that should not be in ↵Chayim2022-12-121-0/+10
| | | | client (#2501)
* Fix special response parsing options handling (#2302)Shay Fadida2022-11-091-1/+11
| | | | | | | | | | | | | | | | | * Fix special response parsing options handling When using special response parsing options like `NEVER_DECODE` and `EMPTY_RESPONSE`, don't pass them to the response callbacks because some of them are not prepared for receiving named arguments. Instead, redis-py should use them before calling the callbacks and then discard them. * Use kwargs instead of options * change options to kwargs in asyncio/cluster.py/L878 Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Handle auth errors for newer versions of Redis. (#2325) (#2329)Luca Cillario2022-08-301-4/+22
|
* Add BITFIELD_RO (#2340)Alibi2022-08-211-0/+13
|
* Fix timezone handling for datetime to unixtime conversions (#2213)joe2022-08-021-3/+3
| | | | | | | | | | | | | | * Fix timezone handling for datetime to unixtime conversions datetime objects are supported to set expire, these can have timezones. mktime was used to convert these to unixtime. mktime in Python however is not timezone aware, it expects the input to be UTC and redis-py did not convert the datetime timestamps to UTC before calling mktime. This can lead to: 1) Setting incorrect expire times because the input datetime object has a timezone but is passed to mktime without converting to UTC first. 2) When the datetime timestamp is within DST, mktime fails with "OverflowError: mktime argument out of range" because UTC doesn't have DST. This depends on libc versions. * linters Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix `XAUTOCLAIM` to return the full response (#2252)dvora-h2022-06-271-2/+2
| | | | | * fix parse_xautoclaim * linters
* SHUTDOWN - add support for the new NOW, FORCE and ABORT modifiers (#2150)dvora-h2022-06-011-0/+14
| | | | | | | | | | | | | | | * add support for NOW, FORCE and ABORT modifiers * linters * test * linters * test params * fix tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Fix tests for Redis 7 (#2182)dvora-h2022-05-311-13/+17
| | | | | * fix tests * async
* update black to 22.3.0 (#2171)Utkarsh Gupta2022-05-301-74/+26
|
* fix incorrect test (#2177)Avital Fine2022-05-161-12/+13
| | | | | * fix incorrect test * Fix types
* Get command keys for subcommands (#2170)dvora-h2022-05-081-1/+2
| | | | | * parse subcommands * fix tests
* Add support for COMMAND LIST (#2149)dvora-h2022-05-081-0/+10
| | | | | * Add support for COMMAND LIST * style change
* ACL SETUSER - add selectors and key based permissions (#2161)dvora-h2022-05-031-4/+34
| | | | | | | * acl setuser * async tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add support for redis 7 streams features (#2157)dvora-h2022-05-031-9/+46
| | | | | | | | | | | | | * xadd * streams redis 7 * linters * test xinfo stream * test xinfo stream * test xclaim
* Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147)dvora-h2022-05-021-0/+5
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Fix incorrect return statement in auth (#2086) (#2092)Kamyab Taghizadeh2022-04-281-0/+14
|
* Add support for MODULE LOADEX (#2146)dvora-h2022-04-271-0/+12
|
* INFO - add support for taking multiple section arguments (#2145)dvora-h2022-04-271-0/+8
| | | | | * add support for taking multiple section arguments * skip test
* support set multi parameters (#2143)dvora-h2022-04-271-0/+10
|
* support get multi parameters (#2142)dvora-h2022-04-271-0/+6
|
* Add support for COMMAND GETKEYSANDFLAGS (#2141)dvora-h2022-04-271-0/+9
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add support for BIT|BYTE option (#2068)dvora-h2022-04-041-0/+18
| | | | | * Add support for BIT|BYTE option * linters
* Clean up test supoort enterprise environments (#2082)dvora-h2022-04-041-0/+35
| | | | | * skip tests on enterprise * delete dping implementation
* Mark tests for redis-stack (#2052)dvora-h2022-03-161-55/+57
| | | | | * mark tests for redis-stack * linters
* Add support for SORT_RO (#1858)dvora-h2022-03-141-0/+10
| | | | | | | | | * add sort_ro * mark test as onlynon cluster * delete mark test as onlynoncluster * skip test
* Add support for PEXPIREAT's options (#2027)dogukanteber2022-03-141-0/+35
| | | | | | | | * Add support for PEXPIREAT's options * add variables to the function header. Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for PEXPIRE command's option (#2026)dogukanteber2022-03-141-0/+27
| | | | | | | | | * Add support for PEXPIRE command's option * Alter method arguments * add variables to the function header Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for EXPIREAT command's options (#2024)dogukanteber2022-03-141-0/+37
| | | | | | | | | | | | | | * Add support for EXPIREAT command's options * Fix linter errors * Make changes on method arguments * Fix linter errors * add variables to the function header Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for EXPIRE command's options (#2002)dogukanteber2022-03-141-0/+25
| | | | | | | | | | | | | * Add support for EXPIRE command's options * Add requested changes * Change method arguments * add variables to the function header Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for PEXPIRETIME (#1861)dvora-h2022-03-071-0/+6
| | | | | * add pexpiretime * skip test
* Add support for EXPIRETIME (#1860)dvora-h2022-03-071-0/+6
| | | | | * add expiretime * skip test
* Implemented COMMAND DOCS by always throwing NotImplementedError (#2020)dvora-h2022-03-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * command docs * Add support for AUTH (#1929) * Add support for AUTH * Fix linter error * test fix * fix test in cluster Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com> * Add support for JSON, TIMESERIES, BLOOM & GRAPH commands in cluster (#2032) Co-authored-by: Chayim <chayim@users.noreply.github.com> * Add support for HSET items (#2006) * Add `items` parameter to `hset` * Add test for `hset` with `items` * Update CHANGES * fix test_profile Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com> * Add cluster support for functions (#2016) * cluster support for functions * fix test_list_on_cluster mark * fix mark * cluster unstable url * fix * fix cluster url * skip tests * linters * linters * skip test Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dogukanteber <47397379+dogukanteber@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: Marek Czaplicki <mdczaplicki@gmail.com>
* Add support for HSET items (#2006)Marek Czaplicki2022-03-061-0/+11
| | | | | | | | | | | | * Add `items` parameter to `hset` * Add test for `hset` with `items` * Update CHANGES * fix test_profile Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for AUTH (#1929)dogukanteber2022-03-021-4/+20
| | | | | | | | | | | | | * Add support for AUTH * Fix linter error * test fix * fix test in cluster Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for Redis 7 functions (#1998)dvora-h2022-02-221-11/+11
| | | | | | | | | | | | | | | | | | | * add function support * linters * test fcall * decode reponses for unstable_r * linters * fix evalsho_ro test * fix eval_ro test * add response callbaks * linters
* Add support for ACL DRYRUN (#1992)dogukanteber2022-02-161-0/+13
| | | | | | | | | | | * Add support for ACL DRYRUN * Fix linter error * Revert "Fix linter error" This reverts commit aa1cf04ea7e93abedfd3a33b818f8f64b92147c4. * Fix linter error
* add support for lcs (#1924)dvora-h2022-02-061-0/+11
|
* Throw NotImplementedError for HELLO (#1912)dvora-h2022-02-061-0/+5
| | | | | | | | | | | | | * unsupported hello * add test and docstring * linters * fix docstring * linters * linters
* Throw NotImplementedError for FAILOVER (#1911)dvora-h2022-02-061-0/+5
| | | | | | | * unsupported failover * add test and docstring * fix docstring
* Throw NotImplementedError for AUTH (#1910)dvora-h2022-02-061-0/+4
| | | | | | | | | * unsupported auth * unsupported-auth * add test and docstring * fix docstring
* Add support for ZMPOP (#1923)dvora-h2022-02-061-0/+11
|
* Add support for BLMPOP (#1849)dvora-h2022-02-021-0/+12
| | | | | | | | | | | | | | | | | | | * Add support for BLMPOP * add type hints * fix test * fix comment * fix pr comment * delete count check * change numkeys * linters * mark test as onlynoncluster
* Add support for LMPOP (#1843)dvora-h2022-02-021-0/+11
| | | | | | | * Add support for LMPOP * add type hints * fix linters
* Add support for SINTERCARD (#1859)dvora-h2022-02-021-0/+9
| | | | | * add sintercard * fix pr comment
* Add support for ZINTERCARD (#1857)dvora-h2022-02-021-0/+9
| | | | | | | * add zintercard * fix pr comment * linters
* add client no-evict (#1856)dvora-h2022-02-021-0/+7
|
* Add support for BZMPOP (#1851)dvora-h2022-02-021-0/+13
| | | | | | | | | | | * add bzmpop * add comment * fix pr comment * fix linters * fix pr comments