def setUpClass(cls): from bgmi.config import CONFIG_FILE_PATH import os os.remove(CONFIG_FILE_PATH) bgmi_config.write_default_config() print(os.path.exists(CONFIG_FILE_PATH)) bgmi_config.read_config()
def setup() -> None: need_to_init = False if not os.path.exists(BGMI_PATH): need_to_init = True print_warning(f"BGMI_PATH {BGMI_PATH} does not exist, installing") create_dir() init_db() if need_to_init: install_crontab() write_default_config()
def tearDownClass(): from bgmi.config import CONFIG_FILE_PATH import os os.remove(CONFIG_FILE_PATH) from bgmi.config import write_default_config write_default_config()