Пример #1
0
def test_home_page_content(home_url_response: Response) -> None:
    assert len(home_url_response.as_str()) > _zero
Пример #2
0
def test_default_home_page_url(default_home_url_response: Response,
                               success: int) -> None:
    assert default_home_url_response.status_code() == success
Пример #3
0
def test_update_non_existent_post(update_non_existent_post_response: Response,
                                  not_found: int) -> None:
    assert update_non_existent_post_response.status_code() == not_found
Пример #4
0
def test_new_post(new_post: Response, success: int) -> None:
    assert new_post.status_code() == success
Пример #5
0
def test_register_page_url(register_url_response: Response, success: int) -> None:
    assert register_url_response.status_code() == success
Пример #6
0
def test_update_existent_post(update_existent_post_response: Response,
                              success: int) -> None:
    assert update_existent_post_response.status_code() == success
Пример #7
0
def test_register_page_content(register_url_response: Response) -> None:
    assert len(register_url_response.as_str()) > _zero
Пример #8
0
def test_about_page_url(about_url_response: Response, success: int) -> None:
    assert about_url_response.status_code() == success
Пример #9
0
def test_about_page_content(about_url_response: Response) -> None:
    assert len(about_url_response.as_str()) > _zero
Пример #10
0
def test_login_page_url(login_url_response: Response, success: int) -> None:
    assert login_url_response.status_code() == success
Пример #11
0
def test_login_page_content(login_url_response: Response) -> None:
    assert len(login_url_response.as_str()) > _zero