Пример #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
Пример #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
Пример #3
0
def get_configuration(ctx, param, value):
    if value:
        click.echo(get_config())
        ctx.exit()
Пример #4
0
def get_configuration(ctx, param, value):
    if value:
        click.echo(get_config())
        ctx.exit()
Пример #5
0
 def handle(self, *args, **options):
     self.stdout.write(get_config())
     self.stdout.write("\n")