Roman Averchenkov

Results 2 comments of Roman Averchenkov

@sazarkin try to use `pytest + pytest-asyncio`, in this case, code will be look something like this: bot\\_\_main__.py ```python from bot.handlers import echo_handler ... if __name__ == '__main__': echo_handler.setup(dp) executor.start_polling(dp,...

@Smosker is it better to create a DB URL string and pass this parameter to your `db` object? ```python db = Gino() async def init_app(): await db.set_bind(f"postgresql://{PG_USER}:{PG_PASSWORD}@{PG_HOST}:{PG_PORT}/{PG_DB}?" f"target_session_attrs={PG_TARGET_SESSION_ATTRS}") ```