Skip to content

Instantly share code, notes, and snippets.

@outofculture
Created August 7, 2013 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save outofculture/6176617 to your computer and use it in GitHub Desktop.
Save outofculture/6176617 to your computer and use it in GitHub Desktop.
too simplistic?
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',
}
@outofculture
Copy link
Author

or just in the wrong place?

@outofculture
Copy link
Author

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