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
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
def setup(): wp_env = OPENSHIFT_ENV wp_url = SITE_URL_SPECIFIC wp_generator = MockedWPGenerator(wp_env, wp_url) wp_generator.clean()