summaryrefslogtreecommitdiff
path: root/tests/test_pubsub.py
Commit message (Collapse)AuthorAgeFilesLines
* Added support for MONITOR in clusters (#1756)Bar Shaul2021-12-021-1/+1
|
* Added black and isort (#1734)Anas2021-11-301-178/+162
|
* Pyupgrade + flynt + f-strings (#1759)Aarni Koskela2021-11-301-1/+1
| | | @akx Thank you so much for this! Thanks again for introducing me to a new tool that I'm sliding into my workflow as well.
* Adding RedisCluster client to support Redis Cluster Mode (#1660)Bar Shaul2021-11-251-1/+12
| | | | 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/+6
|
* Unit test fixes to carry pytest options through all tests (#1696)Chayim2021-11-101-1/+2
|
* Fix garbage collection deadlock (#1578)Eugene Morozov2021-11-081-0/+12
|
* changing unit tests to account for defaults in redis flags (#1499)Chayim2021-07-151-0/+4
| | | Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* daemonize the thread to see if the tests will continueAndy McCurdy2021-06-301-4/+3
|
* Add optional exception handler to PubSubWorkerThread (#1395)Abhimanyu Deora2020-10-261-0/+24
| | | | | Add optional exception handler to PubSubWorkerThread Co-authored-by: Abhimanyu Deora <adeora@drwholdings.com>
* Remove support for end-of-life Python 2.7 (#1318)Jon Dufresne2020-08-061-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Check that we're subscribed to the right channelsAndrew Brookins2020-07-151-5/+2
|
* 'with' statement for PubSub (#765)Dmitry Kuragin2019-12-291-0/+9
| | | PubSub objects are now context managers.
* version 3.3.6, fixed a regression in 3.3.5 with pubsub timeouts3.3.6Andy McCurdy2019-08-061-0/+8
| | | | Fixes #1200
* Make pubsub tests more resilient on laggy connectionsAndy McCurdy2019-07-301-12/+40
| | | | | | | | | | Commands sent on pubsub connections (like subscribe, psusbscribe, etc.) do not wait for the server to acknowledge a reply. This can lead to situations where commands are executed out of order. This is more noticeable on laggy connections. This fix ensures that all anticipated messages are read off the pubsub connection before proceeding to the next command
* Use nonblocking sockets instead of selectors for healthy connectionsAndy McCurdy2019-07-091-0/+13
| | | | | | | This replaces the work in 3.2.0 to use nonblocking sockets instead of selectors. Selectors proved to be problematic for some environments including eventlet and gevent. Nonblocking sockets should be available in all environments.
* Fix code styleMarcin Raczyński2018-12-171-2/+4
|
* Fix #764 - sub-unsub-resub caused PubSub() to forget the channelMarcin Raczyński2018-12-171-0/+40
|
* Merge pull request #1019 from krishan-carbon/patch-1Andy McCurdy2018-11-131-1/+22
|\ | | | | Allow pings in PubSub
| * .Krishan Patel2018-10-281-0/+9
| |
| * fix indentKrishan Patel2018-08-131-2/+2
| |
| * Added testKrishan Patel2018-08-131-1/+13
| |
* | Use unicode literals throughout projectJon Dufresne2018-11-031-13/+14
| | | | | | | | 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.
* | avoid calling pytest fixtures directly since that's frowned uponAndy McCurdy2018-10-311-2/+2
|/
* Add minimum Redis server version to TestPubSubPubSubSubcommandsAngusP2017-01-241-0/+4
|
* Add PUBSUB docs to READMEAngusP2017-01-241-1/+0
|
* Implement PUBSUB * commandsAngusP2017-01-241-1/+27
| | | | | PUBSUB CHANNELS, PUBSUB NUMSUB and PUBSUB NUMPAT are implemented as per https://redis.io/commands/pubsub and suggested in Issue #526. Implemented test class `TestPubSubPubSubSubcommands` to test added commands. Tested against python 3.4.2 and python 2.7.5
* pubsub: improve error reporting if caller forgets to subscribeGreg Ward2016-06-121-0/+8
| | | | | | | | | | | | | This is an easy mistake to make -- at least, I keep making it. It formerly resulted in a confusing crash, "AttributeError: 'NoneType' object has no attribute 'can_read'", from parse_response(). I have had to dig into the redis-py source code more than once to figure out what went wrong. With this patch, it still crashes, but with a clearer error that clarifies what the calling code forgot to do. Fixes issue #716.
* automatic message decoding if decode_responses=True. bugfixes, tests.Andy McCurdy2014-04-011-32/+222
|
* make sure we know the order of expected subscribe/unsubscribe messagesAndy McCurdy2014-03-291-9/+20
|
* fixes PubSub.subscribe once and for all.Andy McCurdy2014-03-281-49/+103
|
* fixed a bunch get_message() bugs, refactored the PythonParser to be saner.Andy McCurdy2014-03-271-75/+116
| | | | still need more pubsub tests but all this stuff *seems* to be working now
* python 2.5 supportandy2013-06-071-0/+1
|
* pubsub testsandy2013-06-061-0/+95