test_celery.py 414 B

12345678910111213141516171819
  1. from __future__ import absolute_import, unicode_literals
  2. import pytest
  3. import celery
  4. def test_version():
  5. assert celery.VERSION
  6. assert len(celery.VERSION) >= 3
  7. celery.VERSION = (0, 3, 0)
  8. assert celery.__version__.count('.') >= 2
  9. @pytest.mark.parametrize('attr', [
  10. '__author__', '__contact__', '__homepage__', '__docformat__',
  11. ])
  12. def test_meta(attr):
  13. assert getattr(celery, attr, None)