Skip to content

Commit

Permalink
issue #104 added core auth.group + core member fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
2ynn committed Jun 14, 2021
1 parent 4548f72 commit caf024a
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 1 deletion.
27 changes: 27 additions & 0 deletions saskatoon/fixtures/auth-group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"model": "auth.group",
"pk": 1,
"fields": {
"name": "core",
"permissions": [
69,
70,
71,
72,
21,
22,
23,
24,
53,
54,
55,
56,
45,
46,
47,
48
]
}
}
]
6 changes: 5 additions & 1 deletion saskatoon/fixtures/init
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd $SCRIPT_DIR

# automatically exit on error
set -e

# migrate database in case it was not already done
../manage.py migrate --skip-checks

# initial sequence order does matter!
seq=(member-city \
seq=(auth-group \
member-city \
member-neighborhood \
member-state \
member-country \
Expand Down
5 changes: 5 additions & 0 deletions saskatoon/fixtures/member-actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
"model": "member.actor",
"pk": 4,
"fields": {}
},
{
"model": "member.actor",
"pk": 5,
"fields": {}
}
]
18 changes: 18 additions & 0 deletions saskatoon/fixtures/member-authuser.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,23 @@
"groups": [],
"user_permissions": []
}
},
{
"model": "member.authuser",
"pk": 4,
"fields": {
"password": "pbkdf2_sha256$260000$XSSo62sasEikkh7QT6pmhP$0euWqhRjDM+odkonz31c62r3ozp5Nm2tB6UyB20d7PA=",
"last_login": null,
"is_superuser": false,
"person": 5,
"email": "core@member.com",
"date_joined": "2021-06-14T18:16:06.369Z",
"is_active": true,
"is_staff": true,
"groups": [
1
],
"user_permissions": []
}
}
]
23 changes: 23 additions & 0 deletions saskatoon/fixtures/member-person.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,28 @@
"language": null,
"comments": ""
}
},
{
"model": "member.person",
"pk": 5,
"fields": {
"redmine_contact_id": null,
"first_name": "Core",
"family_name": "Member",
"phone": "514-123-4321",
"street_number": "321",
"street": "av. du Parc",
"complement": null,
"postal_code": "H2V 4V4",
"neighborhood": 11,
"city": 1,
"state": 1,
"country": 1,
"newsletter_subscription": false,
"longitude": null,
"latitude": null,
"language": 2,
"comments": ""
}
}
]

0 comments on commit caf024a

Please sign in to comment.