calendarium.tests.test_app.models: 7 total statements, 100.0% covered

Generated: Thu 2013-05-02 12:21 SGT

Source file: /Users/martin/Repos/django-calendarium/calendarium/tests/test_app/models.py

Stats: 5 executed, 0 missed, 2 excluded, 16 ignored

  1. """Models for the ``test_app`` test app."""
  2. import factory
  3. from django.db import models
  4. class DummyModel(models.Model):
  5. """
  6. This is a dummy model for testing purposes.
  7. :content: Just a dummy field.
  8. """
  9. content = models.CharField(
  10. max_length=32,
  11. )
  12. class DummyModelFactory(factory.Factory):
  13. """Factory for the ``DummyModel`` model."""
  14. FACTORY_FOR = DummyModel
  15. content = factory.Sequence(lambda n: 'content{0}'.format(n))