def config_fr(json_driver): """ Mocked config object with force_register enabled. """ conf = Config( cog_name="PyTest", unique_identifier=json_driver.unique_cog_identifier, driver=json_driver, force_registration=True, ) yield conf conf._defaults = {}
def config(json_driver): conf = Config(cog_name="PyTest", unique_identifier=json_driver.unique_cog_identifier, driver=json_driver) yield conf conf._defaults = {}