Ejemplo n.º 1
0
def login_texpadmin():
    web_sess = WebUI()
    if web_sess.check_login():
        web_sess.logoff()
    web_sess.login('testExpAdmin', 'P@ssword10')
    web_sess.go_home()
Ejemplo n.º 2
0
def login_tphysician():
    web_sess = WebUI()
    if web_sess.check_login():
        web_sess.logoff()
    web_sess.login('testPhysician', 'P@ssword10')
    web_sess.go_home()
Ejemplo n.º 3
0
def login_tpatient():
    web_sess = WebUI()
    if web_sess.check_login():
        web_sess.logoff()
    web_sess.login(test_patient, tpatient_pwd)
    web_sess.go_home()
Ejemplo n.º 4
0
def logoff():
    web_sess = WebUI()
    if web_sess.check_login():
        web_sess.logoff()
Ejemplo n.º 5
0
def pre_existing_users(request):
    web_sess = WebUI()

    # add all the needed accounts
    if request.config.getoption('--startup-create-accounts'):
        web_sess.request_account('Physician', 'testPhysician', 'P@ssword10', '*****@*****.**',
                                 'test', 'physician', 'home', '123-456-7890')
        web_sess.approve_account('test physician')
        web_sess.request_account('Physician', 'testPhysician2', 'P@ssword10', '*****@*****.**',
                                 'test', 'physician2', 'home', '123-456-7890')
        web_sess.approve_account('test physician2')
        web_sess.request_account('Exp Admin', 'testExpAdmin', 'P@ssword10', '*****@*****.**',
                                 'test', 'expadmin', 'home', '123-456-7890')
        web_sess.approve_account('test expadmin')
        web_sess.logoff()

    if request.config.getoption('--startup-create-patients'):
        web_sess.create_patient('testPhysician',
                                'P@ssword10',
                                test_patient,
                                tpatient_pwd,
                                '1954',
                                'March',
                                '3',
                                'Alabama',
                                '200',
                                '72',
                                'male',
                                'white',
                                'non_hispanic')
        web_sess.logoff()
        web_sess.create_patient('testPhysician',
                                'P@ssword10',
                                test_patient2,
                                tpatient2_pwd,
                                '1999',
                                'November',
                                '10',
                                'Guam',
                                '156',
                                '65',
                                'female',
                                'hawaiian',
                                'non_hispanic')
Ejemplo n.º 6
0
def login_sysadmin():
    web_sess = WebUI()
    if web_sess.check_login():
        web_sess.logoff()
    web_sess.login('fitadmin', 'Password1!')
    web_sess.go_home()