From 33140fd3c154c83d7be48f9a11687d137a344386 Mon Sep 17 00:00:00 2001 From: Longze Chen Date: Mon, 6 Jan 2025 16:43:57 -0500 Subject: [PATCH] Revert incorret fix, which should not remove version info to pass Test: 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 20e19dbf30d..68e6cfd52dd 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.get_guid()._id), + self.payload(email='david@david.son', id=preprint._id), ) assert res.status_code == 204 assert mock_mail.call_count == 1