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')
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')
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)
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)
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')
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'])
def fixture_setup(self, session_browser): """Setup the app.""" functional.login(session_browser) functional.install(session_browser, 'shadowsocks') _configure(session_browser, 'example.com', 'fakepassword')
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)
def fixture_setup(self, session_browser): """Setup the app.""" functional.login(session_browser) functional.install(session_browser, 'mediawiki') _set_server_url(session_browser)
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')
def application_is_installed(session_browser, app_name): functional.install(session_browser, app_name) assert (functional.is_installed(session_browser, app_name))
def test_install(session_browser): """Test installing the app.""" functional.install(session_browser, 'jsxc') assert functional.is_available(session_browser, 'jsxc')