def test_get_filename(configfactory, botfactory): tmpconfig = configfactory('default.ini', TMP_CONFIG) mockbot = botfactory(tmpconfig) filename = remind.get_filename(mockbot) assert filename == os.path.join(mockbot.config.core.homedir, 'default.reminders.db')
def test_get_filename(sopel): filename = remind.get_filename(sopel) assert filename == os.path.join(sopel.config.core.homedir, 'default.reminders.db')
def test_get_filename(sopel): filename = remind.get_filename(sopel) assert filename == os.path.join(sopel.config.core.homedir, 'Sopel-chat.freenode.net.reminders.db')