feat: change QuoteStorerSvc to use the new quote repo instead of the legacy db object
This commit is contained in:
parent
75df191253
commit
3058ca112d
10 changed files with 75 additions and 47 deletions
|
|
@ -68,3 +68,8 @@ async def test_get_random_quote(quote_repo: QuoteRepo):
|
|||
assert quote
|
||||
assert quote.author.user == "author"
|
||||
assert quote.channel.user == "channel"
|
||||
|
||||
|
||||
async def test_create_quote(quote, quote_repo):
|
||||
new_quote = await quote_repo.create(quote)
|
||||
assert new_quote == quote
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue