def setup(cls): if UserStateTest.driver is None: UserStateTest.driver = setup.admin_setup() if setup.ADMIN_INDEX_URL_PREFIX not in UserStateTest.driver.current_url: UserStateTest.driver.close() UserStateTest.driver = setup.admin_setup() assert UserStateTest.driver is not None
def setup(cls): if AddProjectTest.driver is None: AddProjectTest.driver = setup.admin_setup() if setup.ADMIN_INDEX_URL_PREFIX not in AddProjectTest.driver.current_url: AddProjectTest.driver.close() AddProjectTest.driver = setup.admin_setup() assert AddProjectTest.driver is not None
def setup(cls): if PjInfoTest.driver is None: PjInfoTest.driver = setup.admin_setup() if setup.ADMIN_INDEX_URL_PREFIX not in PjInfoTest.driver.current_url: PjInfoTest.driver.close() PjInfoTest.driver = setup.admin_setup() assert PjInfoTest.driver is not None
def setup(cls): if NaviTest.driver is None: NaviTest.driver = setup.admin_setup() if setup.ADMIN_INDEX_URL_PREFIX not in NaviTest.driver.current_url: NaviTest.driver.close() NaviTest.driver = setup.admin_setup() assert NaviTest.driver is not None