diff --git a/api_tests/users/views/test_user_claim.py b/api_tests/users/views/test_user_claim.py index 68e6cfd52dd..20e19dbf30d 100644 --- a/api_tests/users/views/test_user_claim.py +++ b/api_tests/users/views/test_user_claim.py @@ -148,7 +148,7 @@ def test_claim_unauth_success_with_unknown_email(self, app, url, project, unreg_ def test_claim_unauth_success_with_preprint_id(self, app, url, preprint, unreg_user, mock_mail): res = app.post_json_api( url.format(unreg_user._id), - self.payload(email='david@david.son', id=preprint._id), + self.payload(email='david@david.son', id=preprint.get_guid()._id), ) assert res.status_code == 204 assert mock_mail.call_count == 1