Commit Graph

13 Commits

Author SHA1 Message Date
Omer Katz 2c75db39e0 Remove five usage from tests. 2020-07-23 16:33:40 +03:00
Omer Katz 7a6e7cc45b pyupgrade 2020-07-13 16:58:06 +03:00
Oleh Kuchuk 246cb9e996
Fix connection imaybe_declare (#1196) 2020-05-26 21:03:22 +02:00
Matus Valo 4644a5e940
Revert "Raise RecoverableConnectionError in maybe_declare with retry on and dropped connection" (#1195)
This reverts commit 90f51bcbbd.
2020-05-25 00:06:38 +02:00
Oleh Kuchuk 90f51bcbbd Raise RecoverableConnectionError in maybe_declare with retry on and dropped connection 2020-04-15 21:08:18 +06:00
Matt Davis ac6c7b9754 Issue 129 fix maybe declare (#1066)
* Factor out the binding of channel to entity into a method that can be shared and does not use assert.

* do not use assertion in production because it can be stripped in optimize and is best left for unit tests.

* dont reassign entity here because it breaks a bunch of tests.

* fix pydoc complaints

* Add TDD style test that fails in master and passes in my branch

* finish refactor of existing maybe_declare tests to use shared fixtures

* py2/py3 print difference means skip printing.

* fix pep8 line length
2019-06-29 11:34:35 +06:00
Omer Katz 892f400355
Reintroduce unqiue broadcast queue name generation as optional. (#1033) 2019-03-31 17:37:15 +03:00
Omer Katz 5e08ad55b1
Revert "fix/Broadcast-fail-by-give-queue-kwargs (#906)" (#1031)
This reverts commit 87d6423289.
2019-03-27 15:51:13 +02:00
Bruno Alla 62087a67cf Fix a deprecation warning about logger.warn() (#924)
* Fix a deprecation warning about logger.warn()

This fixes a deprecation warning from the standard library's logging module:

> The 'warn' method is deprecated, use 'warning' instead

* Update test
2018-09-27 19:12:44 +06:00
KUAN Hsuan-Tso 87d6423289 fix/Broadcast-fail-by-give-queue-kwargs (#906)
* If give queue kwargs broadcast will fail

Because give Broadcast(name='xxx', queue='xxx'),
it will create one specific name for queue,
and if launch more worker for consuming this queue,
this specific name queue already exist then it will not create new queue to
binding fanout exchange.
So all worker will consuming same queue, and exchange only binding this
queue then lose the effect of broadcasting.

* modify test_Broadcast
2018-08-15 16:59:33 +06:00
George Psarakis 259ac2e2bf Add missing function import 2017-04-26 21:44:34 +03:00
George Psarakis a875363730 Test cases for generate_oid 2017-04-26 21:44:34 +03: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