From f54872c332cd4c2a41d1ef447621d89373ad3fcd Mon Sep 17 00:00:00 2001 From: Vlad0n20 Date: Fri, 10 Jan 2025 14:25:19 +0200 Subject: [PATCH] Fix test_claim_unauth_success_with_preprint_id --- api_tests/users/views/test_user_claim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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