Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more users with more memberships as fixtures #1913

Merged
merged 2 commits into from
Aug 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ When changing the user fixtures one must load new fixtures
./manage.py load_fixtures --generate
```

After changes
An overview of the available users for development can be found in [this PR](https://github.com/webkom/lego/pull/1913)

## Code Style

Expand Down
123 changes: 112 additions & 11 deletions lego/apps/users/fixtures/development_memberships.yaml
Original file line number Diff line number Diff line change
@@ -1,63 +1,164 @@
# =======================
# Webkom user
# =======================
- model: users.Membership
pk: 1
fields:
user:
- webkom
abakus_group:
- Users

- model: users.Membership
pk: 2
fields:
user:
- webkom
abakus_group:
- Abakus

- model: users.Membership
pk: 3
fields:
user:
- webkom
abakus_group:
- Webkom

role: "leader"
- model: users.Membership
pk: 4
fields:
user:
- bedkom
- webkom
abakus_group:
- Users
- 3. klasse Datateknologi

# =======================
# Webkom rec user
# =======================
- model: users.Membership
pk: 5
fields:
user:
- bedkom
- webkomrec
abakus_group:
- Users
- model: users.Membership
pk: 6
fields:
user:
- webkomrec
abakus_group:
- Abakus
- model: users.Membership
pk: 7
fields:
user:
- webkomrec
abakus_group:
- Webkom
role: "recruiting"
- model: users.Membership
pk: 8
fields:
user:
- webkomrec
abakus_group:
- 3. klasse Datateknologi

# =======================
# Bedkom user
# =======================
- model: users.Membership
pk: 6
pk: 9
fields:
user:
- bedkom
abakus_group:
- Users
- model: users.Membership
pk: 10
fields:
user:
- bedkom
abakus_group:
- Abakus
- model: users.Membership
pk: 11
fields:
user:
- bedkom
abakus_group:
- Bedkom
role: "leader"
- model: users.Membership
pk: 12
fields:
user:
- bedkom
abakus_group:
- 3. klasse Kommunikasjonsteknologi

# =======================
# Bedkom rec user
# =======================
- model: users.Membership
pk: 7
pk: 13
fields:
user:
- test1
- bedkomrec
abakus_group:
- Users
- model: users.Membership
pk: 14
fields:
user:
- bedkomrec
abakus_group:
- Abakus
- model: users.Membership
pk: 15
fields:
user:
- bedkomrec
abakus_group:
- Bedkom
role: "recruiting"
- model: users.Membership
pk: 16
fields:
user:
- bedkomrec
abakus_group:
- 3. klasse Kommunikasjonsteknologi

# =======================
# Abakus Leader
# =======================
- model: users.Membership
pk: 8
pk: 17
fields:
user:
- leader
abakus_group:
- Users
- model: users.Membership
pk: 18
fields:
user:
- test1
- leader
abakus_group:
- Abakus
- model: users.Membership
pk: 19
fields:
user:
- leader
abakus_group:
- Hovedstyret
role: "leader"
- model: users.Membership
pk: 20
fields:
user:
- leader
abakus_group:
- 5. klasse Datateknologi
Loading