Skip to content
Snippets Groups Projects
Unverified Commit 6e55d272 authored by Sofiya Semenova's avatar Sofiya Semenova Committed by GitHub
Browse files

Merge pull request #18204 from edx/sofiya/management

Create GDPR test user command fix for password and meta
parents 55930dce 057122b4
Branches
Tags release-2020-11-06-13.30
No related merge requests found
......@@ -75,11 +75,11 @@ class Command(BaseCommand):
'email': email,
'first_name': "GDPR",
'last_name': "Test",
'is_active': True,
'password': 'gdpr test password'
'is_active': True
}
for field, value in user_info.items():
setattr(user, field, value)
user.set_password('gdpr test password')
user.save()
# UserProfile
......@@ -89,7 +89,7 @@ class Command(BaseCommand):
)
user_profile_info = {
'name': 'gdpr test name',
'meta': 'gdpr test meta',
'meta': '{}',
'location': 'gdpr test location',
'year_of_birth': 1950,
'gender': 'gdpr test gender',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment