Commit Graph

12 Commits

Author SHA1 Message Date
Dave Peticolas 7cb4a0afe5
Support standard values for ssl_cert_reqs query parameter. (#1139)
* Support standard values for ssl_cert_reqs query parameter.

* Pick lint.
2020-02-02 21:08:38 +06:00
Ashish Bansal (mrphantom) ccc9e01f32 Fix redis health checks (#1122)
* Fix redis transport health checks functionality

* Add tests for accepts_argument util function

* Reduce default health check interval to 25s
2019-12-02 04:12:13 +06:00
Eric Higdon 5f93e868cf Make sure that max_retries=0 is treated differently than None (#1080)
* Make sure that max_retries=0 is treated differently than None

When max_retries=0, it should not retry at all instead of retrying infinitely.

* retry_always should use max_retries=None instead of 0.

* Added test for zero retries

* Removed Offending spaces from blank line
2019-08-13 23:51:40 +06:00
David Szotten 193054d243 Switch from pkg_resources importlib-metadata (#1071)
See e.g. https://github.com/pypa/setuptools/issues/510#issuecomment-463667124

On a moderatly large project (~200 packages) at $work this saves ~150 ms on
`python -c 'from kombu import Exchange'`
2019-07-06 00:33:35 +06:00
Paul Bailey 30f52ad329 Support SSL URL parameters correctly for rediss protocol (#1002)
* fixed rediss url parsing

* added ssl parameter test

* added ssl parameter test

* added ssl parameter test

* added ssl parameter test

* added ssl parameter test

* added no ssl module parse_url test

* added no ssl module parse_url test

* added no ssl module parse_url test

* convert to list comprehension

* simulate no ssl in test

* add missing logger
2019-02-21 09:38:03 +02:00
tothegump 152923594f Add timeout to retry_over_time (#880)
add ut
2018-08-09 16:55:30 +03:00
John Koehl 39e733c143 Fixes #791 - SQS queue name gets mangled in Python 2.7 environment (#794)
* Fixes #791

* Changing to recommended patch by @georgepsarakis

* Revert "Fixes #791"

This reverts commit 5593505dd9.

* Updated to make tests pass

* Made _ensure_str a private function

* Code formatting for flake8

* Added a mock of the newstr and newbytes classes to create a failing test that simulates the issue with using python-future under 2.7.
2018-01-28 09:21:05 +02:00
Omer Katz 3a7cdb07c9
Make flake8 happy. 2017-12-17 12:15:42 +02:00
Ask Solem 3dec40a007 Adds Queue.expires,.message_ttl,.max_length,.max_length_bytes,.max_priority (Issue #629) 2016-10-14 16:53:03 -07:00
Ask Solem 03790d3afc Removes kombu.syn, moves detect_environment to utils.compat 2016-10-05 16:14:42 -07:00
Ask Solem 84fc45b9a7 Virtual transport deliver now calls callback, no return value. Fixes #593 2016-09-02 15:39:45 -07:00
Ask Solem 6d72e40e5b Rewrite tests to use py.test
NOTE: test_qpid was removed as it's breaking horribly.
It's currently trying to import symbols from kombu.transport.qpid
that don't exist.

assertRaises -> pytest.raises

assertTrue

assertTrue - multiline

assertFalse

assertFalse - multiline

assertIsNone

assertIsNone - multiline

assertEqual

assertEqual - multiline

assertNotEqual

assertNotEqual - multiline

assertGreater - multiline

assertIn

assertIn - multiline

assertNotIn

assertNotIn - multiline

assertIsInstance

assertIsInstance - multiline

assertIsNot

assertIsNot - multiline

assertIsNotNone

assertIs

assertIs - multiline

Manual changes

Now depends on case 1.3.1
2016-08-23 11:38:54 -07:00