summaryrefslogtreecommitdiff
path: root/tests/test_scripting.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow EVAL_RO and EVALSHA_RO to be routed to read replica (#2494)Dongkeun Lee2022-12-251-2/+0
| | | | | | | | | | | | * fix typo (Lue -> Lua) * run eval_ro, evalsha_ro test on redis cluster * Add eval_ro, evalsha_ro to read only commands * assert that commands are run in a round robin manner Co-authored-by: zach.lee <zach.lee@sendbird.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix tests for Redis 7 (#2182)dvora-h2022-05-311-2/+2
| | | | | * fix tests * async
* Clean up test supoort enterprise environments (#2082)dvora-h2022-04-041-1/+3
| | | | | * skip tests on enterprise * delete dping implementation
* Mark tests for redis-stack (#2052)dvora-h2022-03-161-12/+12
| | | | | * mark tests for redis-stack * linters
* Add cluster support for scripting (#1937)Jake Barnwell2022-02-221-2/+92
| | | | | | | | | | | * Add cluster support for scripting * Fall back to connection_pool.get_encoder if necessary * Add documentation for cluster-based scripting * Add test for flush response Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for Redis 7 functions (#1998)dvora-h2022-02-221-2/+2
| | | | | | | | | | | | | | | | | | | * 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 EVALSHA_RO (#1863)dvora-h2022-02-021-0/+9
| | | | | | | | | * add evalsha-ro * fix pr comment * add type hints * add type hints
* Add support for EVAL_RO (#1862)dvora-h2022-02-021-0/+8
| | | | | | | | | | | | | | | | | | | | | * add sort_ro * mark test as onlynon cluster * delete mark test as onlynoncluster * add eval_ro * fix linters * delete sort_ro * fix pr comment * add type hints * add type hints * linters
* Added black and isort (#1734)Anas2021-11-301-30/+28
|
* Adding RedisCluster client to support Redis Cluster Mode (#1660)Bar Shaul2021-11-251-0/+1
| | | | Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Anas <anas.el.amraoui@live.com>
* Fixes to allow --redis-url to pass through all tests (#1700)Chayim2021-11-111-1/+10
|
* Pre 6.2 redis should default to None for script flush (#1641)Chayim2021-10-251-0/+4
|
* Support for SCRIPT FLUSH with SYNC/ASYNC (#1567)Chayim2021-09-011-0/+18
| | | Part of #1546
* Remove support for end-of-life Python 2.7 (#1318)Jon Dufresne2020-08-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 unicode literals throughout projectJon Dufresne2018-11-031-3/+3
| | | | Remove workaround for handling unicode with older Pythons.
* Remove from __future__ import with_statementJon Dufresne2018-11-031-1/+0
| | | | All supported Python versions support the with statement.
* Fix icnorrect testBen Greenberg2017-06-151-1/+2
|
* update tests to reflect the fact that the script sha is precalculatedBen Greenberg2017-06-151-13/+18
|
* pep8 fixHendrik Muhs2014-12-041-0/+1
|
* fix pep8Hendrik Muhs2014-12-041-4/+5
|
* UnicodeDecodeErrorfix unicode encode error when using pipeline in ↵Hendrik Muhs2014-12-041-0/+31
| | | | combination with msgpack and lua
* fix scripting tests on python3Andy McCurdy2014-04-101-2/+3
|
* Make sure we know the SHA of scripts before pipeline execution. Fixes #459Andy McCurdy2014-04-091-0/+81