tests/bot_test.py
def bot(config_path):
    """
    Bot fixture for getting an instance of the bot. A derived MockClient class
    is used instead of ITEEBot.
    
    * config_path (fixture) - path to the test configuration for loading it
    """

    config = load_config(config_path)
    database.init_db(config["DB"])
    bot = MockClient(config, debug=True)
    bot.run()
    yield bot

    Bot fixture for getting an instance of the bot. A derived MockClient class
    is used instead of ITEEBot.
    
    * config_path (fixture) - path to the test configuration for loading it
    
Bot fixture for getting an instance of the bot. A derived MockClient class
is used instead of ITEEBot.

config_path (fixture) - path to the test configuration for loading it
Bot fixture for getting an instance of the bot . A derived MockClient class is used instead of ITEEBot . config_path ( fixture ) - path to the test configuration for loading it
def bot(config_path):
    config = load_config(config_path)
    database.init_db(config["DB"])
    bot = MockClient(config, debug=True)
    bot.run()
    yield bot
def bot ( config_path ) : config = load_config ( config_path ) database . init_db ( config [ "DB" ] ) bot = MockClient ( config , debug = True ) bot . run ( ) yield bot
Bot fixture for getting an instance of the bot.
Bot fixture for getting an instance of the bot .
"""
    Bot fixture for getting an instance of the bot. A derived MockClient class
    is used instead of ITEEBot.
    
    * config_path (fixture) - path to the test configuration for loading it
    """
config_path