示例#1
0
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')
示例#2
0
def test_get_filename(sopel):
    filename = remind.get_filename(sopel)
    assert filename == os.path.join(sopel.config.core.homedir,
                                    'default.reminders.db')
示例#3
0
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')