Fixture for test users

September 5, 2008
Not specified
testing fixtures auth test fixture users
3 (after 3 ratings)

This is a simple fixture that is useful for many tests.

It contains the following users: admin staff user0 user1 user2 user3 inactive0 inactive1

The password of every user is the same as his username, e.g.: admin/admin

[{"pk": 22, "model": "auth.permission", "fields": {"codename": "add_logentry", "name": "Can add log entry", "content_type": 8}}, {"pk": 23, "model": "auth.permission", "fields": {"codename": "change_logentry", "name": "Can change log entry", "content_type": 8}}, {"pk": 24, "model": "auth.permission", "fields": {"codename": "delete_logentry", "name": "Can delete log entry", "content_type": 8}}, {"pk": 4, "model": "auth.permission", "fields": {"codename": "add_group", "name": "Can add group", "content_type": 2}}, {"pk": 10, "model": "auth.permission", "fields": {"codename": "add_message", "name": "Can add message", "content_type": 4}}, {"pk": 1, "model": "auth.permission", "fields": {"codename": "add_permission", "name": "Can add permission", "content_type": 1}}, {"pk": 7, "model": "auth.permission", "fields": {"codename": "add_user", "name": "Can add user", "content_type": 3}}, {"pk": 5, "model": "auth.permission", "fields": {"codename": "change_group", "name": "Can change group", "content_type": 2}}, {"pk": 11, "model": "auth.permission", "fields": {"codename": "change_message", "name": "Can change message", "content_type": 4}}, {"pk": 2, "model": "auth.permission", "fields": {"codename": "change_permission", "name": "Can change permission", "content_type": 1}}, {"pk": 8, "model": "auth.permission", "fields": {"codename": "change_user", "name": "Can change user", "content_type": 3}}, {"pk": 6, "model": "auth.permission", "fields": {"codename": "delete_group", "name": "Can delete group", "content_type": 2}}, {"pk": 12, "model": "auth.permission", "fields": {"codename": "delete_message", "name": "Can delete message", "content_type": 4}}, {"pk": 3, "model": "auth.permission", "fields": {"codename": "delete_permission", "name": "Can delete permission", "content_type": 1}}, {"pk": 9, "model": "auth.permission", "fields": {"codename": "delete_user", "name": "Can delete user", "content_type": 3}}, {"pk": 13, "model": "auth.permission", "fields": {"codename": "add_contenttype", "name": "Can add content type", "content_type": 5}}, {"pk": 14, "model": "auth.permission", "fields": {"codename": "change_contenttype", "name": "Can change content type", "content_type": 5}}, {"pk": 15, "model": "auth.permission", "fields": {"codename": "delete_contenttype", "name": "Can delete content type", "content_type": 5}}, {"pk": 25, "model": "auth.permission", "fields": {"codename": "add_registrationprofile", "name": "Can add registration profile", "content_type": 9}}, {"pk": 26, "model": "auth.permission", "fields": {"codename": "change_registrationprofile", "name": "Can change registration profile", "content_type": 9}}, {"pk": 27, "model": "auth.permission", "fields": {"codename": "delete_registrationprofile", "name": "Can delete registration profile", "content_type": 9}}, {"pk": 16, "model": "auth.permission", "fields": {"codename": "add_session", "name": "Can add session", "content_type": 6}}, {"pk": 17, "model": "auth.permission", "fields": {"codename": "change_session", "name": "Can change session", "content_type": 6}}, {"pk": 18, "model": "auth.permission", "fields": {"codename": "delete_session", "name": "Can delete session", "content_type": 6}}, {"pk": 19, "model": "auth.permission", "fields": {"codename": "add_site", "name": "Can add site", "content_type": 7}}, {"pk": 20, "model": "auth.permission", "fields": {"codename": "change_site", "name": "Can change site", "content_type": 7}}, {"pk": 21, "model": "auth.permission", "fields": {"codename": "delete_site", "name": "Can delete site", "content_type": 7}}, {"pk": 31, "model": "auth.permission", "fields": {"codename": "add_file", "name": "Can add File", "content_type": 11}}, {"pk": 28, "model": "auth.permission", "fields": {"codename": "add_language", "name": "Can add language", "content_type": 10}}, {"pk": 37, "model": "auth.permission", "fields": {"codename": "add_project", "name": "Can add Project", "content_type": 13}}, {"pk": 40, "model": "auth.permission", "fields": {"codename": "add_projectrole", "name": "Can add Project step", "content_type": 14}}, {"pk": 34, "model": "auth.permission", "fields": {"codename": "add_role", "name": "Can add Role", "content_type": 12}}, {"pk": 32, "model": "auth.permission", "fields": {"codename": "change_file", "name": "Can change File", "content_type": 11}}, {"pk": 29, "model": "auth.permission", "fields": {"codename": "change_language", "name": "Can change language", "content_type": 10}}, {"pk": 38, "model": "auth.permission", "fields": {"codename": "change_project", "name": "Can change Project", "content_type": 13}}, {"pk": 41, "model": "auth.permission", "fields": {"codename": "change_projectrole", "name": "Can change Project step", "content_type": 14}}, {"pk": 35, "model": "auth.permission", "fields": {"codename": "change_role", "name": "Can change Role", "content_type": 12}}, {"pk": 33, "model": "auth.permission", "fields": {"codename": "delete_file", "name": "Can delete File", "content_type": 11}}, {"pk": 30, "model": "auth.permission", "fields": {"codename": "delete_language", "name": "Can delete language", "content_type": 10}}, {"pk": 39, "model": "auth.permission", "fields": {"codename": "delete_project", "name": "Can delete Project", "content_type": 13}}, {"pk": 42, "model": "auth.permission", "fields": {"codename": "delete_projectrole", "name": "Can delete Project step", "content_type": 14}}, {"pk": 36, "model": "auth.permission", "fields": {"codename": "delete_role", "name": "Can delete Role", "content_type": 12}}, {"pk": 1, "model": "auth.user", "fields": {"username": "admin", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2008-09-05 12:40:34", "groups": [], "user_permissions": [], "password": "sha1$aaac6$37fae882af0912ced5577ed0f512b4014b9c8551", "email": "[email protected]", "date_joined": "2008-09-05 12:40:21"}}, {"pk": 2, "model": "auth.user", "fields": {"username": "staff", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": true, "last_login": "2008-09-05 12:40:45", "groups": [], "user_permissions": [], "password": "sha1$5c9e6$d41737339d5e09e587f0ed711095fed093ba49b0", "email": "[email protected]", "date_joined": "2008-09-05 12:40:45"}}, {"pk": 3, "model": "auth.user", "fields": {"username": "user0", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:41:19", "groups": [], "user_permissions": [], "password": "sha1$0f040$bf06a328b5c07872f799ba0fdde3a13ac7105be0", "email": "[email protected]", "date_joined": "2008-09-05 12:41:19"}}, {"pk": 4, "model": "auth.user", "fields": {"username": "inactive0", "first_name": "", "last_name": "", "is_active": false, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:41:40", "groups": [], "user_permissions": [], "password": "sha1$bfdfb$74ffa99aeca3ed9659f60587b0b3823f7873fa44", "email": "[email protected]", "date_joined": "2008-09-05 12:41:40"}}, {"pk": 5, "model": "auth.user", "fields": {"username": "user1", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:42:51", "groups": [], "user_permissions": [], "password": "sha1$c22bf$94a48949256045e9e95ec3b70d069529c068de05", "email": "[email protected]", "date_joined": "2008-09-05 12:42:51"}}, {"pk": 6, "model": "auth.user", "fields": {"username": "user2", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:43:06", "groups": [], "user_permissions": [], "password": "sha1$03235$f472e802ed5ab1162bf856225ecbf14c8007dc76", "email": "[email protected]", "date_joined": "2008-09-05 12:43:06"}}, {"pk": 7, "model": "auth.user", "fields": {"username": "user3", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:43:23", "groups": [], "user_permissions": [], "password": "sha1$0d990$084869add86da72278df999959d820cb32f630b7", "email": "[email protected]", "date_joined": "2008-09-05 12:43:23"}}, {"pk": 8, "model": "auth.user", "fields": {"username": "inactive1", "first_name": "", "last_name": "", "is_active": false, "is_superuser": false, "is_staff": false, "last_login": "2008-09-05 12:43:43", "groups": [], "user_permissions": [], "password": "sha1$e03c9$55ca48e5767c6e39d423098926a43260324e05a6", "email": "[email protected]", "date_joined": "2008-09-05 12:43:43"}}]

More like this

  1. Command to make fixtures. by buriy 7 years, 12 months ago
  2. Django load global fixtures test helper by vaz 4 years, 12 months ago
  3. testshell by bmihelac 7 years, 2 months ago
  4. Row-Level, URL-based permissions for FlatPages by bradmontgomery 7 years, 1 month ago
  5. django-noserun for testing by mjt 7 years, 4 months ago


Please login first before commenting.