mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-16 21:20:39 +03:00
update gpt provider to latest changes (#17)
This commit is contained in:
@@ -9,15 +9,16 @@ from typing import Any, AsyncGenerator
|
||||
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from core.bot import BotApplication
|
||||
from core.handlers import bot_event_handlers
|
||||
from fastapi import FastAPI
|
||||
from httpx import AsyncClient
|
||||
from main import Application as AppApplication
|
||||
from pytest_asyncio.plugin import SubRequest
|
||||
from settings.config import AppSettings, get_settings
|
||||
from telegram import Bot, User
|
||||
from telegram.ext import Application, ApplicationBuilder, Defaults, ExtBot
|
||||
|
||||
from core.bot import BotApplication
|
||||
from core.handlers import bot_event_handlers
|
||||
from main import Application as AppApplication
|
||||
from settings.config import AppSettings, get_settings
|
||||
from tests.integration.bot.networking import NonchalantHttpxRequest
|
||||
from tests.integration.factories.bot import BotInfoFactory
|
||||
|
||||
|
||||
@@ -5,9 +5,10 @@ from typing import Any
|
||||
|
||||
import pytest
|
||||
from assertpy import assert_that
|
||||
from core.bot import BotApplication, BotQueue
|
||||
from faker import Faker
|
||||
from httpx import AsyncClient
|
||||
|
||||
from core.bot import BotApplication, BotQueue
|
||||
from main import Application
|
||||
from tests.integration.bot.networking import MockedRequest
|
||||
from tests.integration.factories.bot import (
|
||||
|
||||
@@ -2,6 +2,7 @@ import string
|
||||
|
||||
import factory
|
||||
from faker import Faker
|
||||
|
||||
from tests.integration.factories.models import Chat, User
|
||||
|
||||
faker = Faker("ru_RU")
|
||||
|
||||
Reference in New Issue
Block a user