feat: add Quote.is_active field

This commit is contained in:
cătălin 2025-06-06 14:54:26 +02:00
commit 811fead29d
No known key found for this signature in database
8 changed files with 287 additions and 235 deletions

View file

@ -176,7 +176,7 @@ async def five_chatbots(chatbot_factory, user):
@pytest.fixture
async def persisted_five_chatbots(five_chatbots, chatbot_repo):
return [await chatbot_repo.create(chatbot) for chat in five_chatbots]
return [await chatbot_repo.create(chatbot) for chatbot in five_chatbots]
@pytest.fixture
@ -221,6 +221,7 @@ async def five_quotes(quote_factory):
@pytest.fixture
async def persisted_quote(quote_repo, quote):
quote.is_active = True
return await quote_repo.create(quote)

View file

@ -234,6 +234,7 @@ async def test_create_quote_action(
username=user.username,
channel=user.username,
quote=quote.quote,
is_active=quote.is_active,
author=quote.author,
)
assert new_quote