test_celery.py 355 B

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