Skip to content

Commit

Permalink
Add empty admin test file
Browse files Browse the repository at this point in the history
  • Loading branch information
MissterHao committed Jan 30, 2023
1 parent 7acca16 commit 24bf727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dysession/aws/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,20 @@ def insert_session_item(

class DynamoDB:
def __init__(self, client) -> None:
pass
self.client = client

def get(
self, session_key: Optional[str] = None, ttl: Optional[datetime] = None
) -> Dict[str, Any]:
"""Return session data if dynamodb partision key is matched with inputed session_key"""
return
if session_key is None:
raise ValueError("session_key should be str type")


# if not found then raise
raise SessionKeyDoesNotExist
# raise SessionKeyDoesNotExist
# if key is expired
raise SessionExpired
# raise SessionExpired

def set(self, session_key: Optional[str] = None, session_data=None) -> None:
return
Expand Down
Empty file added tests/test_admin.py
Empty file.

0 comments on commit 24bf727

Please sign in to comment.