From 8fec7a9d4a2fc4156ae4df4af49344f4f4ed6d5c Mon Sep 17 00:00:00 2001 From: utku-ozturk Date: Sun, 5 Nov 2023 00:53:44 +0300 Subject: [PATCH] bump version --- pyproject.toml | 2 +- test/test_redis_tools.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5c3863c3a..6a87ad3b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "8.2.0" +version = "8.3.0.0a1" description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT" diff --git a/test/test_redis_tools.py b/test/test_redis_tools.py index 4e63bbdf4..b533ca8b4 100644 --- a/test/test_redis_tools.py +++ b/test/test_redis_tools.py @@ -23,6 +23,7 @@ def test_redis_session_basic(self, redisdb): rd = RedisBase(redisdb) session_token = RedisSessionToken( namespace=self.NAMESPACE, + email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT ) session_token.store_session_token(redis_handler=rd) @@ -34,7 +35,7 @@ def test_redis_session_basic(self, redisdb): assert not session_token.validate_session_token(redis_handler=rd) # update with a new token and expiration session_token.redis_key = working_token - session_token.update_session_token(redis_handler=rd, jwt=self.DUMMY_JWT) + session_token.update_session_token(redis_handler=rd, email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT) assert session_token.validate_session_token(redis_handler=rd) session_token.redis_key = working_token assert not session_token.validate_session_token(redis_handler=rd) @@ -47,13 +48,14 @@ def test_redis_session_expired_token(self, redisdb): with mock.patch.object(RedisSessionToken, '_build_session_expiration', self.mock_build_session_expiration): session_token = RedisSessionToken( namespace=self.NAMESPACE, + email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT ) session_token.store_session_token(redis_handler=rd) time.sleep(2) assert not session_token.validate_session_token(redis_handler=rd) # update then should validate - session_token.update_session_token(redis_handler=rd, jwt=self.DUMMY_JWT) + session_token.update_session_token(redis_handler=rd, email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT) assert session_token.validate_session_token(redis_handler=rd) def test_redis_session_many_sessions(self, redisdb): @@ -65,6 +67,7 @@ def test_redis_session_many_sessions(self, redisdb): for _ in range(5): session_token = RedisSessionToken( namespace=self.NAMESPACE, + email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT ) session_token.store_session_token(redis_handler=rd) @@ -92,6 +95,7 @@ def test_redis_session_from_redis_equality(self, redisdb): rd = RedisBase(redisdb) session_token_local = RedisSessionToken( namespace=self.NAMESPACE, + email=self.DUMMY_EMAIL, jwt=self.DUMMY_JWT ) session_token_local.store_session_token(redis_handler=rd)