def wordpress(request):
    # Setup
    wordpress = WordPress(section_dir="dyn")
    home = wordpress.launch()
    yield home

    # Teadown
    wordpress.quit()
示例#2
0
def home(request):
    # Setup
    wp = WordPress(section_dir="simple")
    home = wp.launch()
    yield home

    # Teadown
    wp.quit()
def dashboard_re(request):
    # Setup
    wordpress = WordPress(section_dir="root_anchor")
    home = wordpress.launch()
    dashboard = home.login_with_default_creds()
    yield dashboard

    # Teadown
    dashboard.top_nav.logout()
    wordpress.quit()