test_messaging.py 344 B

123456789101112
  1. from __future__ import absolute_import, unicode_literals
  2. import pytest
  3. from celery import messaging
  4. @pytest.mark.usefixtures('depends_on_current_app')
  5. class test_compat_messaging_module:
  6. def test_get_consume_set(self):
  7. conn = messaging.establish_connection()
  8. messaging.get_consumer_set(conn).close()
  9. conn.close()