feat: add Quote.is_active field
This commit is contained in:
parent
7131930d8e
commit
811fead29d
8 changed files with 287 additions and 235 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue