feat: change QuoteStorerSvc to use the new quote repo instead of the legacy db object

This commit is contained in:
cătălin 2025-02-13 10:20:03 +01:00
commit 3058ca112d
No known key found for this signature in database
10 changed files with 75 additions and 47 deletions

View file

@ -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