예제 #1
0
def test_find_request_negative():
    response = Dog._find_request('https://dog.ceo/api/wrong/link/all')
    with allure.step("Check status code, with invalid url"):
        assert response.status_code == HTTPStatus.NOT_FOUND
    allure.attach(response.text, attachment_type=allure.attachment_type.TEXT)
예제 #2
0
def test_find_request_positive():
    response = Dog._find_request('https://dog.ceo/api/breeds/list/all')
    with allure.step("Check status code, with valid url"):
        assert response.status_code == HTTPStatus.OK
    allure.attach(response.text, attachment_type=allure.attachment_type.TEXT)