Ejemplo n.º 1
0
def fixture_background(session_browser):
    """Login and install the app."""
    functional.login(session_browser)
    functional.install(session_browser, 'searx')
    yield
    functional.login(session_browser)
    functional.app_disable(session_browser, 'searx')
Ejemplo n.º 2
0
 def fixture_background(self, session_browser):
     functional.login(session_browser)
     functional.set_advanced_mode(session_browser, True)
     functional.install(session_browser, self.app_name)
     functional.app_enable(session_browser, self.app_name)
     yield
     functional.login(session_browser)
     functional.app_disable(session_browser, self.app_name)
Ejemplo n.º 3
0
def fixture_background(session_browser):
    """Login and install the app."""
    functional.login(session_browser)
    functional.install(session_browser, 'bind')
    functional.app_enable(session_browser, 'bind')
    yield
    functional.app_disable(session_browser, 'bind')
    _backup_schedule_disable(session_browser)
Ejemplo n.º 4
0
def test_enable_disable(session_browser):
    """Test enabling the app."""
    functional.app_disable(session_browser, APP_ID)

    functional.app_enable(session_browser, APP_ID)
    assert functional.service_is_running(session_browser, APP_ID)

    functional.app_disable(session_browser, APP_ID)
    assert functional.service_is_not_running(session_browser, APP_ID)
Ejemplo n.º 5
0
def test_enable_disable(session_browser):
    """Test enabling the app."""
    functional.app_disable(session_browser, 'searx')

    functional.app_enable(session_browser, 'searx')
    assert functional.is_available(session_browser, 'searx')
    _is_search_form_visible(session_browser)

    functional.app_disable(session_browser, 'searx')
    assert not functional.is_available(session_browser, 'searx')
Ejemplo n.º 6
0
def test_enable_disable(session_browser):
    """Test enabling the app."""
    functional.app_disable(session_browser, 'wordpress')

    functional.app_enable(session_browser, 'wordpress')
    assert functional.service_is_running(session_browser, 'wordpress')
    assert functional.is_available(session_browser, 'wordpress')

    functional.app_disable(session_browser, 'wordpress')
    assert functional.service_is_not_running(session_browser, 'wordpress')
    assert not functional.is_available(session_browser, 'wordpress')
Ejemplo n.º 7
0
def test_preserve_public_access_setting(session_browser):
    """Test that public access setting is preserved when disabling and
    re-enabling the app."""
    functional.login(session_browser)
    functional.app_enable(session_browser, 'searx')
    _enable_public_access(session_browser)

    functional.app_disable(session_browser, 'searx')
    functional.app_enable(session_browser, 'searx')
    functional.logout(session_browser)

    assert functional.is_visible_on_front_page(session_browser, 'searx')
    assert functional.is_available(session_browser, 'searx')
Ejemplo n.º 8
0
def disable_application(session_browser, app_name):
    functional.app_disable(session_browser, app_name)
Ejemplo n.º 9
0
def application_is_disabled(session_browser, app_name):
    functional.app_disable(session_browser, app_name)