Improve samples_factory generated objects.
authorDiane Trout <diane@ghic.org>
Sat, 10 Jan 2015 00:16:54 +0000 (16:16 -0800)
committerDiane Trout <diane@ghic.org>
Sat, 10 Jan 2015 00:16:54 +0000 (16:16 -0800)
commit75861b424b5fcf38d2a600e9b999673c8685b28a
tree189587082655e36dec46a6b967f617acaa803f3e
parenteab6a6480da70b8f3b46626e66ae8bf3d489e316
Improve samples_factory generated objects.

* Add LibraryType and MultiplexIndex factories.
* Use factoryboy's fuzzy tools to generate more interesting objects,
  especially to avoid problems with Unique=True fields.
* Use django_get_or_create to make it easier to deail with things
  like usernames
* Define field values for is_staff and is_superuser for the user model
* Unsurprisingly this required updating some test cases to
  be compatible with the changes.
samples/samples_factory.py
samples/test_samples.py