-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92a9e58
commit 0638c97
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
"""Defines CRUD interface for user API.""" | ||
|
||
import asyncio | ||
import uuid | ||
import warnings | ||
|
||
from boto3.dynamodb.conditions import Key | ||
|
@@ -51,7 +52,7 @@ async def get_token(self, email: str) -> Token | None: | |
|
||
async def test_adhoc() -> None: | ||
async with UserCrud() as crud: | ||
await crud.add_user(User(email="[email protected]")) | ||
await crud.add_user(User(id=str(uuid.uuid4()), email="[email protected]")) | ||
# print(await crud.get_user("ben")) | ||
# print(await crud.get_user_count()) | ||
# await crud.get_token("ben") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters