'pyyaml',
'python-ebml',
],
- tests_require=['pytest-django', 'pytest-cov'],
+ tests_require=['pytest-django', 'pytest-cov', 'factory-boy'],
# Provide a test command through django-setuptest
cmdclass={'test': PyTest},
dependency_links = ['https://github.com/yomguy/django-json-rpc/tarball/0.6.2#egg=django-json-rpc-0.6.2'],
--- /dev/null
+# -*- coding: utf-8 -*-
+"""
+Factories for the telemeta.models.instrument
+
+"""
+import factory
+
+from telemeta.models.instrument import Instrument
+
+
+class InstrumentFactory(factory.django.DjangoModelFactory):
+ class Meta:
+ model = Instrument
+
+ name = factory.Sequence(lambda n: 'name{0}'.format(n))