test_celery.py 412 B

1234567891011121314151617
  1. from __future__ import absolute_import, unicode_literals
  2. import celery
  3. import pytest
  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)