mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-09-11 22:30:41 +03:00
* add testing database and chatgpt factories * include lint job to develop stage * reformat audioconverter save files to tmp directory * add api tests * update README.md
14 lines
347 B
Python
14 lines
347 B
Python
import factory
|
|
|
|
from infra.database.db_adapter import Database
|
|
from settings.config import settings
|
|
|
|
database = Database(settings)
|
|
|
|
|
|
class BaseModelFactory(factory.alchemy.SQLAlchemyModelFactory):
|
|
class Meta:
|
|
abstract = True
|
|
sqlalchemy_session_persistence = "commit"
|
|
sqlalchemy_session = database.get_sync_db_session()
|