From: Thomas Fillon Date: Wed, 5 Jul 2017 07:44:59 +0000 (+0200) Subject: Test: restore deleted file X-Git-Tag: 1.6.4^2~20 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a8645f58591090a42925c4976909022f54f6ba6;p=telemeta.git Test: restore deleted file --- diff --git a/telemeta/tests/instrument_factories.py b/telemeta/tests/instrument_factories.py new file mode 100644 index 00000000..54214cd9 --- /dev/null +++ b/telemeta/tests/instrument_factories.py @@ -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))