https://travis-ci.com/gitUser/gitRepo/builds/XXXXXX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @pytest.mark.usefixtures("setup_from_checklist") | |
| @pytest.mark.usefixtures("checklist_object") | |
| class TestChecklistGeneral: | |
| @pytest.fixture(autouse=True) | |
| def page_builder_for_checklist(self, browser, checklist_object, state_of_created): | |
| self.checklist_object = checklist_object | |
| self.checklist_edit = GeneralChecklistEdit(browser) | |
| self.checklist_index = GeneralChecklistIndex(browser) | |
| self.checklists_list = GeneralChecklistsList(browser) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Необходимо установить Flask (см. урок, там есть как ставить) | |
| from flask import abort, redirect, url_for | |
| from flask import Flask | |
| from flask import request | |
| app = Flask(__name__) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from StudentPortal import StudentPortalHelper | |
| class App: | |
| def __init__(self): | |
| self.driver = webdriver.Chrome() | |
| self.portal = StudentPortalHelper(self) | |
| self.driver.implicitly_wait(3) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yandex | |
| def test_yandex_search(): | |
| yandex.yandex_search(yandex.driver_initialization()) | |
| yandex.browser_close(yandex.driver_initialization()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yandex | |
| def test_yandex_search(): | |
| yandex.yandex_search(yandex.driver) | |
| yandex.browser_close(yandex.driver) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| driver = webdriver.Chrome() | |
| driver.get("http://www.ya.ru") | |
| search_string = driver.find_element_by_id("text") | |
| search_string.send_keys("QA NINJAS") | |
| search_string.submit() | |
| time.sleep(3) | |
| driver.quit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| driver = webdriver.Chrome() | |
| driver.get("http://www.ya.ru") | |
| search_string = driver.find_element_by_id("text") | |
| search_string.send_keys("QA NINJAS") | |
| search_string.submit() | |
| driver.quit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| URL = "https://translate.yandex.net/api/v1.5/tr.json/translate" . #это адрес для обращения к API | |
| KEY = "trnsl.1.1.20190115T093726Z.65e1460d8d95bd06.р45ор345о3р4о53р45о345р3о" #Это ваш API ключ | |
| def translate_me(mytext): | |
| params = { | |
| "key": KEY, | |
| "text": mytext, |
