示例#1
0
def test_new_post(new_post: Response, success: int) -> None:
    assert new_post.status_code() == success
示例#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_update_existent_post(update_existent_post_response: Response,
                              success: int) -> None:
    assert update_existent_post_response.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_about_page_url(about_url_response: Response, success: int) -> None:
    assert about_url_response.status_code() == success
示例#7
0
def test_login_page_url(login_url_response: Response, success: int) -> None:
    assert login_url_response.status_code() == success