Skip to content

Commit

Permalink
Updates test user creation logic inside of container
Browse files Browse the repository at this point in the history
Removing old method calls from user creation logic, this is only
used inside of the container for the functional testing.
  • Loading branch information
kushaldas authored and msheiny committed Aug 15, 2018
1 parent 626945f commit 749b385
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions securedrop/tests/functional/functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ def setup(self, session_expiration=30):
password=valid_password,
is_admin=True)
user.otp_secret = 'JHCOGO7VCER3EJ4L'
user.pw_salt = user._gen_salt()
user.pw_hash = user._scrypt_hash('WEjwn8ZyczDhQSK24YKM8C9a',
user.pw_salt)
db.session.add(user)
db.session.commit()
except IntegrityError:
Expand All @@ -279,7 +276,7 @@ def setup(self, session_expiration=30):
# This user is required for our tests cases to login
self.admin_user = {
"name": "journalist",
"password": "WEjwn8ZyczDhQSK24YKM8C9a",
"password": "correct horse battery staple profanity oil chewy",
"secret": "JHCOGO7VCER3EJ4L"}
self.admin_user['totp'] = pyotp.TOTP(self.admin_user['secret'])
self.sleep_time = 2
Expand Down

0 comments on commit 749b385

Please sign in to comment.