def main(): logging.basicConfig(level=logging.INFO) authenticate() repos = collect_repos() clone_repos(repos) browser.quit()
def tearDownClass(cls): browser.quit() # For remote test execution # chrome_options = webdriver.ChromeOptions() # chrome_options.add_argument("--disable-notifications") # chrome_options.add_argument("--enable-automation") # chrome_options.add_argument("--start-maximized") # # driver = webdriver.Remote( # command_executor='http://127.0.0.0.1:4444/wd/hub', # desired_capabilities=desired_cap)
def setup_session(request): if not bc.test_session_started: print("\n>>> Before Session") bc.set_test_session_started() configure_driver() rerun_controller.add_test_to_listener(request.node.items[-1]) yield print("CHECKING RUNS") if rerun_controller.are_reruns_out(): bc.set_test_session_closed() browser.quit() print("\n>>> After Session\n") print("CLOSING SSH CONNECTION\n")
def setup(request): yield browser browser.quit()
def teardown_module(module): browser.quit()
def setup(): browser.open_url('https://www.google.com') yield browser.quit()
def teardown_module() -> None: """ Выход из браузера """ browser.quit()
def after_all(context): browser.quit() print('>>>>AFTER ALL')
def fin(): browser.quit()
def tearDown(self): SQLHelper.delete_tasks_for_user(self.get_first_test_user()) SQLHelper.delete_tasks_for_user(self.get_second_test_user()) browser.quit()