Skip to content

Commit

Permalink
Add test for send_reset_password_email
Browse files Browse the repository at this point in the history
  • Loading branch information
davidotte committed May 19, 2024
1 parent 43d7ecc commit 7c383e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tabpfn_client/tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ def test_valid_auth_token(self, mock_server):
mock_server.router.get(mock_server.endpoints.protected_root.path).respond(200)
self.assertTrue(self.client.try_authenticate("true_token"))

@with_mock_server()
def test_send_reset_password_email(self, mock_server):
mock_server.router.post(mock_server.endpoints.send_reset_password_email.path).respond(
200, json={"message": "Password reset email sent!"})
self.assertEqual(self.client.send_reset_password_email("test"), (True, "Password reset email sent!"))

@with_mock_server()
def test_retrieve_greeting_messages(self, mock_server):
mock_server.router.get(mock_server.endpoints.retrieve_greeting_messages.path).respond(
Expand Down

0 comments on commit 7c383e5

Please sign in to comment.