Skip to content

Commit

Permalink
Remove unused test path
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwatson committed Sep 16, 2016
1 parent 3dba9fe commit 4a69cb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions snapcraft/tests/fake_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,8 @@ def _handle_tokens_discharge_request(self):
('otp' not in data or
data['otp'] == 'test correct one-time password')):
self._send_tokens_discharge(data)
elif data['password'] == 'test requires 2fa' and 'otp' not in data:
elif data['password'] == 'test requires 2fa':
self._send_twofactor_required_error()
elif (data['password'] == 'test requires 2fa' and
data['otp'] == 'test correct one-time password'):
self._send_tokens_discharge(data)
else:
self._send_invalid_credentials_error()

Expand Down

0 comments on commit 4a69cb2

Please sign in to comment.