示例#1
0
 def fixture_setup(self, session_browser):
     """Setup the app."""
     functional.login(session_browser)
     functional.set_domain_name(session_browser, 'mydomain.example')
     functional.install(session_browser, self.app_name)
     functional.app_select_domain_name(session_browser, self.app_name,
                                       'mydomain.example')
示例#2
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')
示例#3
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)
示例#4
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)
示例#5
0
def test_change_home_page(session_browser):
    """Test changing webserver home page."""
    functional.install(session_browser, 'syncthing')
    functional.app_enable(session_browser, 'syncthing')
    _set_home_page(session_browser, 'syncthing')

    _set_home_page(session_browser, 'plinth')
    assert _check_home_page_redirect(session_browser, 'plinth')
示例#6
0
def _jsxc_add_contact(browser):
    """Add a contact to JSXC user's roster."""
    functional.set_domain_name(browser, 'localhost')
    functional.install(browser, 'jsxc')
    _jsxc_login(browser)
    new = browser.find_by_text('new contact')
    if new:  # roster is empty
        new.first.click()
        browser.find_by_id('jsxc_username').fill('alice@localhost')
        browser.find_by_text('Add').first.click()
        assert functional.eventually(browser.find_by_text, ['alice@localhost'])
示例#7
0
 def fixture_setup(self, session_browser):
     """Setup the app."""
     functional.login(session_browser)
     functional.install(session_browser, 'shadowsocks')
     _configure(session_browser, 'example.com', 'fakepassword')
示例#8
0
 def fixture_setup(self, session_browser):
     """Setup the app."""
     functional.login(session_browser)
     functional.install(session_browser, self.app_name)
     functional.app_enable(session_browser, self.app_name)
     self._shaarli_is_setup(session_browser)
示例#9
0
 def fixture_setup(self, session_browser):
     """Setup the app."""
     functional.login(session_browser)
     functional.install(session_browser, 'mediawiki')
     _set_server_url(session_browser)
示例#10
0
def fixture_background(session_browser):
    """Login and install the app."""
    functional.login(session_browser)
    functional.install(session_browser, 'snapshot')
    if not _is_snapshot_supported(session_browser):
        pytest.skip('Filesystem doesn\'t support snapshots')
示例#11
0
def application_is_installed(session_browser, app_name):
    functional.install(session_browser, app_name)
    assert (functional.is_installed(session_browser, app_name))
示例#12
0
def test_install(session_browser):
    """Test installing the app."""
    functional.install(session_browser, 'jsxc')
    assert functional.is_available(session_browser, 'jsxc')