Created
August 7, 2013 17:53
-
-
Save outofculture/6176617 to your computer and use it in GitHub Desktop.
too simplistic?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo(models.Model): | |
name = models.CharField() | |
sound = models.FileField(null=True) | |
class Meta: | |
data_factory_fields = ['name'] | |
data_factory_defaults = { | |
'name': 'Sam I am', | |
} |
I might want 'name': random_name
to generate a random name (and log the seed used so that the tests can be duplicated)...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or just in the wrong place?