コード例 #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
ファイル: test_functional.py プロジェクト: JoKeyser/Plinth
def test_change_domain_name(session_browser):
    """Test changing the domain name."""
    functional.set_domain_name(session_browser, 'mydomain.example')
    assert _get_domain_name(session_browser) == 'mydomain.example'

    # Capitalization is ignored.
    functional.set_domain_name(session_browser, 'Mydomain.example')
    assert _get_domain_name(session_browser) == 'mydomain.example'
コード例 #3
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'])
コード例 #4
0
def change_domain_name_to(session_browser, domain):
    functional.set_domain_name(session_browser, domain)
コード例 #5
0
def step_set_domain_name(session_browser, domain):
    functional.set_domain_name(session_browser, domain)