Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
def get_configuration(ctx, param, value):
    if value:
        click.echo(get_config())
        ctx.exit()
Ejemplo n.º 4
0
def get_configuration(ctx, param, value):
    if value:
        click.echo(get_config())
        ctx.exit()
Ejemplo n.º 5
0
 def handle(self, *args, **options):
     self.stdout.write(get_config())
     self.stdout.write("\n")