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

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

Source file: /home/tobi/Projects/calendarium/src/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))