diff --git a/tests/test_redis.py b/tests/test_redis.py index 985dad93..54e49a03 100644 --- a/tests/test_redis.py +++ b/tests/test_redis.py @@ -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