Skip to content

Commit

Permalink
Fix testing error with no secret key
Browse files Browse the repository at this point in the history
Expect KeyError
  • Loading branch information
Lxstr committed Jan 5, 2024
1 parent 20f834a commit c4a0ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_redis_with_signer(self, app_utils):
'SESSION_USE_SIGNER': True,
})
# Without a secret key set, there should be an exception raised
with pytest.raises(AssertionError):
with pytest.raises(KeyError):
app_utils.test_session_set(app)

# With a secret key set, no exception should be thrown
Expand Down

0 comments on commit c4a0ede

Please sign in to comment.