コード例 #1
0
ファイル: test_helpers.py プロジェクト: gandalfar/pyimagediet
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
ファイル: diet.py プロジェクト: gandalfar/pyimagediet
def get_configuration(ctx, param, value):
    if value:
        click.echo(get_config())
        ctx.exit()
コード例 #4
0
ファイル: diet.py プロジェクト: gandalfar/pyimagediet
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")