Skip to content

Commit

Permalink
Update test_register.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neilshaabi committed Feb 25, 2024
1 parent ce79216 commit 9b18be7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def new_user_data(fake_user_client: User, fake_user_password: str) -> dict:
}


def test_get_register(client: FlaskClient):
@patch.object(Mail, "send")
def test_get_register(mock_send_email: Mock, client: FlaskClient):
response = client.get("/register")
assert response.status_code == 200
mock_send_email.assert_not_called()
return


Expand Down

0 comments on commit 9b18be7

Please sign in to comment.