Exemple #1
0
def test_new_post(new_post: Response, success: int) -> None:
    assert new_post.status_code() == success
Exemple #2
0
def test_default_home_page_url(default_home_url_response: Response,
                               success: int) -> None:
    assert default_home_url_response.status_code() == success
Exemple #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
Exemple #4
0
def test_update_existent_post(update_existent_post_response: Response,
                              success: int) -> None:
    assert update_existent_post_response.status_code() == success
Exemple #5
0
def test_register_page_url(register_url_response: Response, success: int) -> None:
    assert register_url_response.status_code() == success
Exemple #6
0
def test_about_page_url(about_url_response: Response, success: int) -> None:
    assert about_url_response.status_code() == success
Exemple #7
0
def test_login_page_url(login_url_response: Response, success: int) -> None:
    assert login_url_response.status_code() == success