Пример #1
0
def generate(ctx, input_dir, patterns_file, output):

    set_parameter_value(ctx, "gen-kw-file", output)

    click.echo ("running 'generate' command with:")
    click.echo ("input_dir = " + input_dir)
    click.echo ("ouput_file = " + output)
    combinations = generate_combinations(input_dir, patterns_file)
    click.echo("Writing file '%s'" % output)
    save_combinations(output, combinations)
Пример #2
0
def generate(ctx, input_dir, output):

    set_parameter_value(ctx, "gen-kw-file", output)

    click.echo ("running 'generare' command with:")
    click.echo ("input_dir = " + input_dir)
    click.echo ("ouput_file = " + output)
    combinations = generate_combinations(input_dir)
    click.echo("Writing file '%s'" % output)
    save_combinations(output, combinations)
Пример #3
0
    def test(self):

        generated_keywords = generate_combinations(get_fixture_file("fixtures/generator"))
        expected = ["developpement geneve",
                    "developpement drupal",
                    "developpement aem",
                    "development geneva",
                    "development drupal",
                    "development aem",
                    ]
        self.assertEqual(expected, generated_keywords.keys())