calendarium.constants: 5 total statements, 100.0% covered

Generated: Tue 2013-04-16 13:15 CEST

Source file: /home/tobi/Projects/calendarium/src/calendarium/constants.py

Stats: 4 executed, 0 missed, 1 excluded, 26 ignored

  1. """Constants for the ``calendarium`` app."""
  2. from django.utils.translation import ugettext_lazy as _
  3. FREQUENCIES = {
  4. 'YEARLY': 'YEARLY',
  5. 'MONTHLY': 'MONTHLY',
  6. 'WEEKLY': 'WEEKLY',
  7. 'DAILY': 'DAILY',
  8. }
  9. FREQUENCY_CHOICES = (
  10. (FREQUENCIES['YEARLY'], _('Yearly')),
  11. (FREQUENCIES['MONTHLY'], _('Monthly')),
  12. (FREQUENCIES['WEEKLY'], _('Weekly')),
  13. (FREQUENCIES['DAILY'], _('Daily')),
  14. )
  15. OCCURRENCE_DECISIONS = {
  16. 'all': 'all',
  17. 'following': 'following',
  18. 'this one': 'this one',
  19. }
  20. OCCURRENCE_DECISION_CHOICESS = (
  21. (OCCURRENCE_DECISIONS['all'], _('all')),
  22. (OCCURRENCE_DECISIONS['following'], _('following')),
  23. (OCCURRENCE_DECISIONS['this one'], _('this one')),
  24. )