async def tf_cog(bot): tf_cog = TextFilter.TextFilter(bot) tf_cog.tf_database_manager.create_tables() bot.add_cog(tf_cog) dpytest.configure(bot) print("Tests starting") return tf_cog
def se5tup_function(): """ setup any state specific to the execution of the given module.""" global base_cog, tf_cog, utils_cog bot = commands.Bot(command_prefix=KoalaBot.COMMAND_PREFIX) base_cog = BaseCog.BaseCog(bot) tf_cog = TextFilter.TextFilter(bot) tf_cog.tf_database_manager.create_tables() utils_cog = LastCtxCog.LastCtxCog(bot) bot.add_cog(base_cog) bot.add_cog(tf_cog) bot.add_cog(utils_cog) dpytest.configure(bot) print("Tests starting") return dpytest.get_config()
def text_filter_db_manager(): return TextFilter.TextFilterDBManager( KoalaDBManager.KoalaDBManager(KoalaBot.DATABASE_PATH, KoalaBot.DB_KEY), dpytest.get_config())