Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
authenticated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong authored Jul 24, 2023
1 parent 0122cd6 commit 9e30382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

pytest_plugins = ("pytest_asyncio",)

from os import getenv

@pytest.mark.asyncio()
async def test_ask() -> None:
bot = await Chatbot.create() # Passing cookies is "optional", as explained above
bot = await Chatbot.create(cookies=getenv("EDGE_COOKIES"))
response = await bot.ask(
prompt="find me some information about the new ai released by meta.",
conversation_style=ConversationStyle.balanced,
Expand Down

0 comments on commit 9e30382

Please sign in to comment.