def wp_generator_generic():
    # To generate website with generic plugin list/configuration
    generator = MockedWPGenerator({
        'openshift_env': settings.OPENSHIFT_ENV,
        'wp_site_url': SITE_URL_GENERIC,
        'wp_site_title': "TEST",
        'wp_tagline': "My Test",
        'unit_name': UNIT_NAME
    })
    generator.clean()
    generator.generate()
    return generator
Beispiel #2
0
def wp_generator_category():
    # To generate website with specific plugin list/configuration
    generator = MockedWPGenerator({
        'openshift_env': settings.OPENSHIFT_ENV,
        'wp_site_url': SITE_URL_SPECIFIC,
        'wp_site_title': "TEST",
        'wp_tagline': "My Test",
        'langs': 'en',
        'unit_name': UNIT_NAME,
        'category': 'fun-category'
    })
    generator.clean()
    generator.generate()
    return generator
Beispiel #3
0
def setup():
    wp_env = OPENSHIFT_ENV
    wp_url = SITE_URL_SPECIFIC
    wp_generator = MockedWPGenerator(wp_env, wp_url)
    wp_generator.clean()