Fonctionnalités :
Déclarations :
ORMs :
class UserFactory(factory.Factory): FACTORY_FOR = auth_models.User first_name = factory.Sequence(lambda n: "John-%s" % n) last_name = factory.Sequence(lambda n: "Doe-%s" % n) username = factory.LazyAttribute( lambda o: '%s.%s' % ( o.first_name.lower(), o.last_name.lower(), ))
3 mainteneurs :
Nouvelles fonctionnalités clés :
Déclarations :
Aléatoire :
Paramétrage :
class StationFactory(factory.django.DjangoModelFactory): class Meta: model = stations_models.Station class Params: nb_parks = 4 maintenance = factory.Trait( state='maintenance', maintenance_log=factory.RelatedFactory( MaintenanceLog, 'station'), )
ORMs :
Pour Django :
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |