From e7a5b2cc096b785b62067c8b9d2d77ffacc74900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Wed, 11 Sep 2024 11:01:29 +0200 Subject: [PATCH] External transfer no longer unarchives --- itou/job_applications/models.py | 1 - tests/job_applications/tests.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/itou/job_applications/models.py b/itou/job_applications/models.py index ab5133addbb..eeb0c6a234d 100644 --- a/itou/job_applications/models.py +++ b/itou/job_applications/models.py @@ -994,7 +994,6 @@ def unset_processed_at(self, *args, **kwargs): JobApplicationWorkflow.TRANSITION_RENDER_OBSOLETE, JobApplicationWorkflow.TRANSITION_TRANSFER, JobApplicationWorkflow.TRANSITION_RESET, - JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER, ) def unarchive(self, *args, **kwargs): self.archived_at = None diff --git a/tests/job_applications/tests.py b/tests/job_applications/tests.py index 76d1f4fb200..c34796afaa9 100644 --- a/tests/job_applications/tests.py +++ b/tests/job_applications/tests.py @@ -1703,6 +1703,8 @@ def test_job_application_transitions(transition, from_state): JobApplicationState.PRIOR_TO_HIRE, } & {from_state.name, transition.target.name} + # Employer transfers to another structure, they likely won’t interact with this job application again. + or JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER == transition.name ) ], )