]> git.parisson.com Git - telemeta.git/commitdiff
Test: restore deleted file
authorThomas Fillon <thomas@parisson.com>
Wed, 5 Jul 2017 07:44:59 +0000 (09:44 +0200)
committerThomas Fillon <thomas@parisson.com>
Wed, 5 Jul 2017 07:44:59 +0000 (09:44 +0200)
telemeta/tests/instrument_factories.py [new file with mode: 0644]

diff --git a/telemeta/tests/instrument_factories.py b/telemeta/tests/instrument_factories.py
new file mode 100644 (file)
index 0000000..54214cd
--- /dev/null
@@ -0,0 +1,15 @@
+# -*- 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))