def setUpClass(cls): cls.client = app.test_client() with app.app_context(): init_db() update_db() settings.TESTING = True skf.app.initialize_app(app)
def setUpClass(cls): cls.client = app.test_client() with app.app_context(): update_db() init_db() chatbot_tools.init_dataset() settings.TESTING = True app.app_context().push()
def setUp(self): self.client = app.test_client() with app.app_context(): init_db(True) settings.TESTING = True self.driver = webdriver.Chrome() driver = self.driver driver.get("http://localhost:4200/") username = driver.find_element_by_name("username") password = driver.find_element_by_name("password") username.send_keys("admin") password.send_keys("admin") password.send_keys(Keys.RETURN)