Skip to content

Commit

Permalink
* Fixed flake8 errors on a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpcope1 committed Feb 2, 2024
1 parent 865978f commit e484963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_setup_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def test_exp_seconds_too_long(self):
Test to validate that a user can't set an expiry longer than 5 minutes.
"""
with self.assertRaises(client.DuoException) as e:
self.client._validate_init_config(CLIENT_ID, CLIENT_SECRET, HOST, REDIRECT_URI, 2*EXP_SECONDS)
self.client._validate_init_config(CLIENT_ID, CLIENT_SECRET, HOST, REDIRECT_URI, 2 * EXP_SECONDS)
self.assertEqual(e, client.ERR_EXP_SECONDS_TOO_LONG)
# Even if the end user forcefully sets the expiry, ensure the clamped value is in spec.
self.client._exp_seconds = 2*EXP_SECONDS
self.client._exp_seconds = 2 * EXP_SECONDS
self.assertEqual(self.client._clamped_expiry_duration, client.FIVE_MINUTES_IN_SECONDS)

def test_exp_seconds_too_short(self):
Expand Down

0 comments on commit e484963

Please sign in to comment.