From c4a0ede87d1395d776cce0209c7adda2990f4ed2 Mon Sep 17 00:00:00 2001 From: Lex Date: Fri, 5 Jan 2024 19:34:37 +1100 Subject: [PATCH] Fix testing error with no secret key Expect KeyError --- tests/test_redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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