def test_config_attribute(): robot = WeRoBot(enable_session=False) assert not robot.token token = generate_token() robot.config["TOKEN"] = token assert robot.token == token token = generate_token() robot.token = token assert robot.config["TOKEN"] == token
def test_config_attribute(): robot = WeRoBot(SESSION_STORAGE=False) assert not robot.token token = generate_token() robot.config["TOKEN"] = token assert robot.token == token token = generate_token() robot.token = token assert robot.config["TOKEN"] == token