def test_get_config_output(): expected = """\ commands: optipng: {0}/optipng pipelines: png: - optipng """.format(TOOLS_DIR) helpers.TOOLS = ('optipng',) output = helpers.get_config() assert output == expected
def test_get_config_output(): expected = """\ commands: optipng: {0}/optipng pipelines: png: - optipng """.format(TOOLS_DIR) helpers.TOOLS = ('optipng', ) output = helpers.get_config() assert output == expected
def get_configuration(ctx, param, value): if value: click.echo(get_config()) ctx.exit()
def handle(self, *args, **options): self.stdout.write(get_config()) self.stdout.write("\n")